Python - Simple Calculator | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
27th Feb 2021, 7:39 PM
Bbrbk
9 Respostas
+ 2
you should have code prefilled for getting inputs, such as: num1 = int(input()) num2 = int(input()) and you just have to call function to output result of addition of the two variables defined (num1 and num2 -- or whatever name they could have) addition is done as you do in math, output use the first function you should have encoutered (print)... let me know if that make sense and the result of your try ;)
28th Feb 2021, 12:28 AM
visph
visph - avatar
+ 1
There are 5 Test Case. Click on the Link In the first Test Case I write "print(6+3)" thn first Test Case is right, but i dont know how can I write next one
27th Feb 2021, 7:47 PM
Bbrbk
0
Write code according to problem description, not according to test cases. Your code should work for every possible correct input
27th Feb 2021, 7:49 PM
Benjamin JĆ¼rgens
Benjamin JĆ¼rgens - avatar
0
How can I do that?
27th Feb 2021, 7:54 PM
Bbrbk
0
I don't understand this problem "Write a program to take two integers as input and output their sum. Sample Input: 2 8 Sample Output: 10" What should I write here?
27th Feb 2021, 8:09 PM
Bbrbk
0
Repeat lesson 15.1
27th Feb 2021, 8:12 PM
Benjamin JĆ¼rgens
Benjamin JĆ¼rgens - avatar
0
solved?
27th Feb 2021, 10:46 PM
visph
visph - avatar
0
No.
28th Feb 2021, 12:17 AM
Bbrbk
- 1
hi Bbrbk what part do you need help with exactly?
27th Feb 2021, 7:41 PM
Ollie Q
Ollie Q - avatar