New course! Every coder should learn Generative AI!
Try a free lesson+ 3
To solve the task, there are several steps to do:
1. Get the 2 inputs
2. Convert the input values to numeric values
3. Add the numbers
4. Print the result of the addition (output)
How you can accomplish this in python, is covered in the solo learn python course.
+ 2
Its code for you naah its too simple that code is for you too solve so you can think more logically if you can go back to basic of tutorial just keep trying don't try to get answers fast from others try to takeout some answer from yourself
+ 2
danayt please use the searchbar before asking as this is a duplicate question.
Thanks and happy coding.
https://www.sololearn.com/discuss/2540002/?ref=app
https://www.sololearn.com/discuss/1427616/?ref=app
https://www.sololearn.com/discuss/2575612/?ref=app
+ 1
Ohh ok thank you!:)
+ 1
Lessons from the Sololearn Python course
https://www.sololearn.com/learn/Python/4434/
https://www.sololearn.com/learn/Python/2271/
+ 1
STEP
A. Use two prompt functions that will obtain the inputs..
B. Convert the input to interfere.
C. Create a function that sum both integer
D. Output the result
0
Its very simple
A=2
B=8
Print(" the sum of a and b is " , a+b)
I too am a beginner
0
a = 0
for num in range(2):
a += int(input())
print(a)