+ 1

Python input()

Why can't you use input() more than one time without an error?

12th Nov 2020, 6:08 AM
zShxrinqan
zShxrinqan - avatar
5 Respuestas
+ 6
zShxrinqan , please link your code here, so that we can clearly see what the issue with your code is. We also don't know whether you are running your code in playground or in a local IDE. Can you kindly share all this with us? Thanks!
12th Nov 2020, 8:56 AM
Lothar
Lothar - avatar
+ 2
You can't do that in Sololearn. All inputs must be made before running the code, which means you must set up an escape from the loop before starting to input
12th Nov 2020, 7:29 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Ok and how to use it multiple times when running a loop? like while True: Input = input() for char in list(Input): print(char)
12th Nov 2020, 6:19 AM
zShxrinqan
zShxrinqan - avatar
0
It works without error.If inputs are in burst lines . Like this: Input() Input() You must fill them in single input and in burst lines.
12th Nov 2020, 7:38 AM
Mohsen Abbaspour
Mohsen Abbaspour - avatar