Multiple inputs python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Multiple inputs python

Is that possible to get an user input, assign it to a variable (e.g. length of a list), output a string and then get other user inputs to assign to the list?

13th Jun 2020, 11:02 PM
Mario Leofreddi
Mario Leofreddi - avatar
7 Answers
+ 3
Sololearn playground supports input only once, but in every normal python script this works, yes.
13th Jun 2020, 11:07 PM
Sandra Meyer
Sandra Meyer - avatar
+ 3
Thanks. Me too, with a "little" effort of reasoning:)), I figured out how to. Also in playground
14th Jun 2020, 6:12 PM
Mario Leofreddi
Mario Leofreddi - avatar
+ 2
Mario Leofreddi yes you can enter multiple inputs but you have to enter them upfront not as a normal flowing app. I have a few where you can load upto 15 inputs in the beginning and it still works. I also have two working calculator, one in Skulpt module and the second in Brython.
14th Jun 2020, 1:31 AM
BroFar
BroFar - avatar
+ 2
BroFar By the way, thank you too for I discovered Brython. Do you have any suggestion to follow a course other than brython.info?
14th Jun 2020, 6:20 PM
Mario Leofreddi
Mario Leofreddi - avatar
+ 2
I just read that Brython is trying to supersede javascript. But, at the moment, I don't know anything about Brython and I'd like to learn something
14th Jun 2020, 8:01 PM
Mario Leofreddi
Mario Leofreddi - avatar
+ 1
Sandra Meyer thank you so much. What a pity it doesn't work in playground
13th Jun 2020, 11:15 PM
Mario Leofreddi
Mario Leofreddi - avatar
0
Mario is there anything in particular ? If so I will research. Brython is lightweight and works well with Javascript and Python...
14th Jun 2020, 6:33 PM
BroFar
BroFar - avatar