+ 2
In Sololearn When We Post Python Code And our code in many Inputs But Run Just One Input????
3 RĂ©ponses
+ 2
All you have to do is enter different inputs seperated by a newline character (*enter*) before the time of execution
Eg:-
Input1
Input2
Input3
.
.
.
And so on.
+ 1
If your talking about taking one input at a time, I find that you can use the try method and then put different inputs in. When he user types an input you can get an answer and use that answer for some other inputs.
try:
a = input("What\'s your favorite color?")
if a == 'Blue':
print("Your favorite color is Blue")