21 Answers
New AnswerfirstNum = int(input("First Num")); lastNum = int(input("Last Num")); sum = (firstNum + lastNum); print(sum); What's problems this code. please 🙂 help me
2/25/2021 4:25:59 PM
SHORIF SHUVO21 Answers
New AnswerI 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());
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😊
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
Code link.............code check please 😃 https://code.sololearn.com/cMu1canMG7La/?ref=app
Hi! you should enter the numbers in a single pop-up window, separating them with the enter button
What is ";"? It python and not C#... Just write: firstnum = int(input("First Num: ")) lastnum = int(input("Last Num: ")) sum = (firstnum + lastnum) print(sum)
The right code is this firstNum=int(input()) secondNum=int(input()) Sum=firstNum+secondNum print(Sum)
there is semicolon on every line. python is very sensitive language. semicolon is not meant to be there.
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message