python program to check if the given string has more than 5 characters
Answers
Answered by
2
Answer:
Input : str = "hello geeks for geeks is computer science portal" k = 4Output : hello geeks geeks computer science portalExplanation : The output is list of all words that are of length more than k.Input : str = "string is fun in python" k = 3Output : string python
Answered by
3
st = input("Enter string: ")
stc = len(st)
if stc > 5:
print("Entered string have more than 5 characters. ")
else:
print("Entered string do not have more than 5 characters. ")
Similar questions
India Languages,
2 months ago
Math,
2 months ago
Physics,
4 months ago
Physics,
10 months ago
Social Sciences,
10 months ago