Computer Science, asked by tanviharish, 4 months ago

python program to check if the given string has more than 5 characters

Answers

Answered by debroytanusree
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 atrs7391
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