Please read the guide .
Please answer the question in detail
Algorithm for adding two numbers:
# Python program to add two numbers
# Take input from the user num1 = float(input("Enter the first number: ")) num2 = float(input("Enter the second number: "))
# Add the two numbers sum = num1 + num2
# Display the sum print("The sum of", num1, "and", num2, "is", sum)
Doubtly is an online community for engineering students, offering:
Get the pro version for free by logging in!
5.7k questions
5.1k answers
108 comments
559 users