Help? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 1

Help?

I need help to do Simple calculator project on Python

29th Nov 2021, 8:46 AM
Narcis Moraru
Narcis Moraru - avatar
6 Réponses
+ 3
Do you mean the task in the course? * take 2 inputs using input() * store inputs in 2 variables * convert variables to integer using int() * add the 2 variables * print the result If you have problems with the code, please link your code!
29th Nov 2021, 8:55 AM
Lisa
Lisa - avatar
+ 3
Great! Just a hint: You don't need the int() in the 3rd line – x and y already will be integer as you converted them in line 1 and 2
29th Nov 2021, 9:01 AM
Lisa
Lisa - avatar
+ 2
Hi Narcis Moraru Can you please provide the following to help us help you. Description of task with example inputs ,outputs. Or name of challenge and where it is located, IE: 12.5 Python Core - Challenge Name Please show us your attempt so we may advise you how to improve. (hopefully)
29th Nov 2021, 8:55 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Yeah, I solved it x = int(input()) y = int(input()) z = int(x) + int(y) print(z)
29th Nov 2021, 8:59 AM
Narcis Moraru
Narcis Moraru - avatar
+ 1
Oh, thanks!
29th Nov 2021, 9:02 AM
Narcis Moraru
Narcis Moraru - avatar