0
Python question
What would be the output of this code, if the user entered 5 and 4 as input? width = input() height = input() area = int(width) * int(height) print(area//9) my question how do you put two inputs when the program asks you I don't know how to do that can anyone explain how?
4 Answers
+ 4
Are you asking about in sololearn?
Give all required inputs separated as line by line in input - popup window and submit
Ex:
5 ( press enter)
4 ( press submit)
Output is : 5*4//9=2
+ 4
Separate your inputs into different lines. For example, your code takes two inputs, so you have to input on two lines. In this case, first line will be assigned to width and second line to height.
____________________
40
200
____________________
40 will be assigned to width and 200 to height.
On terminal, it will wait before you type your input. Though in sololearn, follow the previous instruction above.
+ 2
Thanks guys
0
2