0

Howtoget solution in python

8. Write codes that suit the conditions below. (20 pts) 1) Ask a word; Enter Word: 2) If the length of input word is less than 5, print “Too short.” 3) Unless, print the word then ask a new word; Enter Word: 4) If a user enter ‘quit’, the loop statement will be excuted. 5) Use while, continue, break, and if clauses.

12th Apr 2018, 10:16 PM
박지혜
1 ответ
+ 3
x=input() while True: if(len(x)<5): print('Too short') x=input('New word:enter= ') if(x=='quit'): break else: print('right word') break
13th Apr 2018, 5:15 AM
Maninder $ingh
Maninder $ingh - avatar