New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How can i get several inputs at a time for one variable ??
3 Answers
+ 3
>>> inp = input().split()
Hello World
>>> print(inp)
["Hello", "World"]
+ 1
It is called a list. Google "python list". On other languages, it's an array.
+ 1
tnx all