+ 2

In Sololearn When We Post Python Code And our code in many Inputs But Run Just One Input????

9th May 2020, 6:38 AM
Syed Ahmed Raza Shah
Syed Ahmed Raza Shah - avatar
3 odpowiedzi
+ 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.
9th May 2020, 6:47 AM
Arsenic
Arsenic - avatar
9th May 2020, 7:01 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 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")
10th May 2020, 2:43 AM
GermoOKD
GermoOKD - avatar