+ 2

Second Input no show

firstNum = int(input("First Num")); lastNum = int(input("Last Num")); sum = (firstNum + lastNum); print(sum); What's problems this code. please 🙂 help me

25th Feb 2021, 4:25 PM
SHORIF SHUVO
SHORIF SHUVO - avatar
21 Respuestas
+ 5
I guess this is a code coach module end: you don't have to provide a string to be displayed in input: firstNum = int(input()); lastNum = int(input());
25th Feb 2021, 5:33 PM
visph
visph - avatar
+ 5
SHORIF SHUVO 1. In Python you shouldn't use semicolon ; 2. After entering the first number, you should press ENTER(not submit!!!) 3. After entering the second number, you should press submit. I hope it works😊
26th Feb 2021, 12:36 AM
Hasan Hüseyin Semiz
Hasan Hüseyin Semiz - avatar
25th Feb 2021, 4:31 PM
Nikolai Ivanov
Nikolai Ivanov - avatar
+ 3
SHORIF SHUVO No problem here. Working fine
25th Feb 2021, 4:32 PM
A͢J
A͢J - avatar
+ 3
what exactly is the problem? can you describe?
25th Feb 2021, 4:36 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 3
Other's apps output easyli show
25th Feb 2021, 4:39 PM
SHORIF SHUVO
SHORIF SHUVO - avatar
+ 3
when I run your program, I have a pop-up window where I enter two numbers using the enter key and the program in the console gives me the result. there are no errors
25th Feb 2021, 4:42 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
25th Feb 2021, 4:30 PM
SHORIF SHUVO
SHORIF SHUVO - avatar
+ 2
Code link.............code check please 😃 https://code.sololearn.com/cMu1canMG7La/?ref=app
25th Feb 2021, 4:30 PM
SHORIF SHUVO
SHORIF SHUVO - avatar
+ 2
Hi! you should enter the numbers in a single pop-up window, separating them with the enter button
25th Feb 2021, 4:32 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
Ok trying
25th Feb 2021, 4:34 PM
SHORIF SHUVO
SHORIF SHUVO - avatar
+ 2
Sorry same problem
25th Feb 2021, 4:34 PM
SHORIF SHUVO
SHORIF SHUVO - avatar
+ 2
What is ";"? It python and not C#... Just write: firstnum = int(input("First Num: ")) lastnum = int(input("Last Num: ")) sum = (firstnum + lastnum) print(sum)
27th Feb 2021, 7:39 AM
IFULLUT -_-
IFULLUT -_- - avatar
+ 1
Please solve
25th Feb 2021, 4:35 PM
SHORIF SHUVO
SHORIF SHUVO - avatar
+ 1
Central Processing Unit Semicolon is optional.
27th Feb 2021, 9:46 AM
A͢J
A͢J - avatar
+ 1
the code also works with a semicolon
27th Feb 2021, 9:47 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
The right code is this firstNum=int(input()) secondNum=int(input()) Sum=firstNum+secondNum print(Sum)
27th Feb 2021, 9:10 AM
Prince Goswami
Prince Goswami - avatar
0
Remove all of ; these
27th Feb 2021, 2:02 PM
Khushal Neekhra
Khushal Neekhra - avatar
- 1
I think semicolon at print line
27th Feb 2021, 8:29 AM
Ahmed Mohammed Alnor Abdalmahmod Abdalslam
Ahmed Mohammed Alnor Abdalmahmod Abdalslam - avatar
- 1
there is semicolon on every line. python is very sensitive language. semicolon is not meant to be there.
27th Feb 2021, 9:29 AM
Central Processing Unit
Central Processing Unit - avatar