Hello, I need help making a short program that adds two numbers in Python language. Code to be typed: Explanation of code: num1 =25 num1 is a variable that now holds the value of 25 num2 = 15 num2 is...


Hello, I need help making a short program that adds two numbers in Python language.














































Code to be typed:









Explanation of code:







num1 =25






num1 is a variable that now holds the value of 25






num2 = 15






num2 is a variable that now holds the value of 15






sum = num1 + num2






Assignment statement to add two numbers






text1="The number is"






The variable text1 is assigned content.  Text is contained in double-quotes numbers are not.






text2="My name is"






 The variable text2 is assigned content.






name = "Your name"






The variable "name" is assigned content.






print(text1, sum)






Print the contents of the variables text1 and sum.






print(text2, name)






Print the contents of the variables text1 and name.





Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here