Does a program press enter between inputs? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Does a program press enter between inputs?

Seeing the sololearn code playground and knowing that to differenciate multiple inputs you need to press enter. Does this mean that it is required for all programs to do this to differenciate inputs?

29th May 2018, 11:32 AM
Panagiotis Skoulis
Panagiotis Skoulis - avatar
1 Resposta
+ 2
Yes. If you have many inputs. put each in its own line. Unless you use code like this: (Python) x, y, z = [i for i in input().split()] # this way you can put 3 inputs in the same line # separated by space
29th May 2018, 11:51 AM
Ulisses Cruz
Ulisses Cruz - avatar