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?

14th Jul 2022, 4:18 PM
Abiel
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
14th Jul 2022, 4:27 PM
Jayakrishna šŸ‡®šŸ‡³
+ 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.
14th Jul 2022, 4:28 PM
noteve
noteve - avatar
+ 2
Thanks guys
14th Jul 2022, 4:44 PM
Abiel
0
2
11th Jan 2023, 9:13 PM
Joel NDAYISABA
Joel NDAYISABA - avatar