- 4

Simple Calculator

What do I do there because Iā€™m doing everything but they are still telling me to check if the code is correct

4th Jan 2022, 12:56 PM
Daniel Kusi
16 Answers
+ 4
Well, then just check your code? Please link your code if you need help. And tag the relevant programming language.
4th Jan 2022, 1:03 PM
Lisa
Lisa - avatar
+ 4
Please provide the code if you want others to help you. It's very hard to determine what's wrong with your code if we don't know how it looks.
4th Jan 2022, 1:04 PM
Edvin
+ 4
What's that code and problem description? Mention details clearly... https://www.sololearn.com/discuss/333866/?ref=app
4th Jan 2022, 1:04 PM
Jayakrishna šŸ‡®šŸ‡³
+ 3
Its python
4th Jan 2022, 1:03 PM
Daniel Kusi
+ 1
I am to write a program to take two integers as input and output their sum but i dont know why but i keep getting it wrong
4th Jan 2022, 3:25 PM
Daniel Kusi
+ 1
https://www.sololearn.com/post/75089/?ref=app This may helps to link code..
4th Jan 2022, 5:17 PM
Jayakrishna šŸ‡®šŸ‡³
+ 1
Please don't post only ready-made code ā€“ it is not helpful for a beginner if you don't explain anything.
5th Jan 2022, 7:26 AM
Lisa
Lisa - avatar
0
Daniel Kusi Read the task description carefully. Review the lessons. And if you need help with code then LINK YOUR CODE!
4th Jan 2022, 3:29 PM
Lisa
Lisa - avatar
0
Im new to coding and dont even know how to link code please
4th Jan 2022, 3:30 PM
Daniel Kusi
0
Go to Code section, click +, select Python, put your code there, save it. Come back to this thread, click +, select your saved code.
4th Jan 2022, 3:32 PM
Lisa
Lisa - avatar
0
Thanks
4th Jan 2022, 3:32 PM
Daniel Kusi
0
Try this: You have two integers --> x and y and u should use input, because the exact numbers don't matter. So we use x and y as variables x = int(input()) y = int(input ()) #You need the parentheses when u write input. And int is before input. Then u can print the sum. print (x+y).
5th Jan 2022, 12:59 AM
Soni Gre
Soni Gre - avatar
0
input() gets a string a_variable is necessary to store the input() a_variable = input() You'll need two integers to sum them up, Try a_number = int(input("Give me a number: ")) Python will evaluate first of all the inner function input() then it will evaluate the int() But it will work, only if the user input a valid whole number Otherwise, it will raise an ERROR message The second variable is similar to this another_number = int(input(("Give me another number: ")) For output, try: print(a_number + another_number)
5th Jan 2022, 1:20 AM
Lee on Art
Lee on Art - avatar
0
Answer: a = int(input()) b = int(input()) print(a + b)
5th Jan 2022, 6:35 AM
Jin Peng Chen
- 1
Somebody help
4th Jan 2022, 3:26 PM
Daniel Kusi
- 2
Python code : a=int(input()) b=int(input()) print(a+b)
5th Jan 2022, 4:30 AM
Khandelwal Nidhi