python-by-example-150-chall.../challenges80-87/challenge-083.py

9 lines
263 B
Python
Raw Permalink Normal View History

2019-07-22 20:22:11 +08:00
string = str(input('Please enter word in upper case ? '))
is_upper = False
while not is_upper:
if string.isupper():
is_upper = True
else:
string = str(input('Sorry not all in upper case, please enter word in upper case ? '))
print(string)