+ 1

How to accept multiline input from a user?

I searched but couldn't find what I need

2nd Feb 2020, 7:14 PM
Ali Abdelhady
Ali Abdelhady - avatar
6 Respuestas
+ 5
x, y = input().split()
2nd Feb 2020, 7:46 PM
BroFar
BroFar - avatar
+ 4
Guess the number is not possible on Sololearn
2nd Feb 2020, 7:52 PM
Oma Falk
Oma Falk - avatar
+ 3
you need to give the input in multiple lines with space or new line, like this "input1 input2" or input1 input2 it's better to use that of the seçond
2nd Feb 2020, 7:20 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
✳AsterisK✳ so I have to actually give more than one input instead of one input with multiple line typing allowance?
2nd Feb 2020, 7:37 PM
Ali Abdelhady
Ali Abdelhady - avatar
+ 2
Alexandr I tried it and it worked but what if I want to prompt the user, like 'Enter your name: ' for example? Do I have to use a module for such a thing?
2nd Feb 2020, 7:38 PM
Ali Abdelhady
Ali Abdelhady - avatar
+ 1
Alexandr Thank you!
2nd Feb 2020, 8:26 PM
Ali Abdelhady
Ali Abdelhady - avatar