Website Extension
Coding Problem Keys
Website Extension
Problem Statement
The program must accept a website domain name as a string S and print the extension of the domain.
Boundary Condition(s)
10 <= Length of S <= 100
Input Format
The first line contains S.
Output Format
The first line contains the extension of the domain S.
Example Input/Output 1
Input
www.google.com
Output
com
Example Input/Output 2
Input
www.abcenggcoll.edu.in
Output
edu.in
Note: Max Execution Time Limit: 500 millisecs
Solution
Programming Language: Python 3 Language
l=list(map(str,input().split('.'))) print(*l[2:],sep=".")
# Published By PKJCODERS
(Note: Incase If the code doesn't Pass the output kindly comment us with your feedback to help us improvise.)
Comments