+ 1

How to input an interger?

its pops up an Dailogue box saying that split the lines for multiple inputs,. ...I'm new to this...help me out

18th Nov 2016, 5:37 PM
Charan
Charan - avatar
3 Answers
+ 3
if you have multiple inputs, input what your program requires on different lines for each time input is required. to put in an integer just type it in. to put in two integers to compare them for example, type one integer go down to the next line in the input box and input the other. once all the necessary input is entered hit submit. Note: The sololearn compiler's input is restricted. You cannot make multiple inputs based on other inputs for a game.
18th Nov 2016, 5:42 PM
NICKALL [EP]
NICKALL [EP] - avatar
+ 1
if you need to input an integer , take a variable to store the integer. like value. now use input function and use data type conversion from str to int...for example: value = int (input("enter integer number")) and then print out the value ,it will print integer number which u have entered.
19th Nov 2016, 8:48 PM
harish g
0
Input_list = [int(e)for e in input().split]
19th Nov 2016, 12:28 AM
Hiro
Hiro - avatar