+ 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
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.
+ 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.
0
Input_list = [int(e)for e in input().split]