+ 2

How do we create a loop that asks to users to fill the input() in python ? If it doesn’t fill the asked informations come again

Name = input( “Enter your name”) Age = input( “Enter your name”)

29th Jun 2020, 7:45 PM
AngEm N'cho
AngEm N'cho - avatar
2 RĂ©ponses
+ 9
Before we can help you, please do a try by yourself, put the code in playground, and link it here. To give you a hint, how it can be done: use a loop , and store your inputs a n variables. give a condition for the loop, that it should run as long as any of the variables is empty. If they are not empty, the code after the loop will be executed.
29th Jun 2020, 8:08 PM
Lothar
Lothar - avatar
+ 1
oh thank you
21st Sep 2020, 7:07 PM
AngEm N'cho
AngEm N'cho - avatar