Multiple inputs python | SoloLearn: Learn to code for FREE!

+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?

6/13/2020 11:02:22 PM

Mario Leofreddi

7 Answers

New Answer

+3

Sololearn playground supports input only once, but in every normal python script this works, yes.

+3

Thanks. Me too, with a "little" effort of reasoning:)), I figured out how to. Also in playground

+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.

+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?

+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

+1

Sandra Meyer thank you so much. What a pity it doesn't work in playground

0

Mario is there anything in particular ? If so I will research. Brython is lightweight and works well with Javascript and Python...