def resume(first, second, parent, city, phone, start, strfind, string1):
# Write your code here
#1
a=first.strip() # strip() used to remove white spaces at start and end
b=second.strip()
c=parent.strip()
d=city.strip()
#2
w=a.title() # title() is used to capitalize first letter of sstring
x=b.title()
y=c.title()
#3
print(w+" "+x+" "+y+" "+d)
#4
ph=(phone.isdigit()) # isdigit checks numerical
print(ph)
print(phone.startswith(start)) # startswith check particular one starts with
z=first+second+parent+city # given str or int ()
print(z.count(strfind))
print(string1.split()) # split white spaces with ''
print(city.find(strfind)) # index position
Comments
Post a Comment