6. Write a program in Python that accepts the complete home address from a user. Define a function that finds the length of the user input and checks whether the string contains 'M.G. Road'.
Answers
Answered by
25
# User inputs the string and it gets stored in variable str
str = input("Enter a string: ")
# using len() function to find length of str
print("Length of the input string is:", len(str))
Output:
Enter a string: Chaitanya
Length of the input string is: 9
str = input("Enter a string: ")
# using len() function to find length of str
print("Length of the input string is:", len(str))
Output:
Enter a string: Chaitanya
Length of the input string is: 9
Answered by
3
this answer is not please you get me answer
Similar questions