0
how do i do multiple inputs in one program?
I've been testing the "simple calculator" code, and it turns out i can input only one input per program. is there any way to input multiple different inputs in one program?
5 Respostas
+ 2
https://code.sololearn.com/WhiNb9BkJUVC
+ 1
by calling input() multiple times!
can you please show you code?
+ 1
Yes it is possible.
when you have multiple inputs, you can enter the next value on a new line.
the best way is to install the IDE, write the code there and practice. IDE is your best friend)
0
num1 = int(input())
num2 = int(input())
print(int(num1) + int(num2))