+ 4
PYTHON LOVERS! IF i take a input from user , then how we write code by which, user input cannot be enter the input blank.
removing blank output
7 Respostas
+ 4
logic will remain same for everything.
this might help.
and please save it if you want because I will delete it soon .đ
https://code.sololearn.com/cQ7ZYzPfqn77/?ref=app
+ 3
I'll make a code for you...
+ 3
text = input()
if len(text) == 0 :
print("blank")
else:
print(text)
0
thanks! for help
0
text == input()
if text == ' ':
print('cannot be blank')
else:
print(text)
0
all of the above code is bypassed by giving too much space