+ 1
Printing a message if there is no input
Is there a way I can get a message that gets printed if there is no user input? Iâve tried using: User_input=str(input()) If User_input==None: Print(âPlease enter a valueâ) else: Print(User_input) But it doesnât seem to work. Is there a way I can get this to work?
2 Answers
+ 4
You wrote if using uppercase I and you wrote print using uppercase P and the quotes you used in your print functions do not work try using these " " and these' '