livepython.net

21. Python Program to Add Two Variables

EasyVariables

Overview

Perform basic arithmetic with variables.

Problem Statement

Add two numbers stored in variables and print the result.

Constraints:

  • Use num1 = 5 and num2 = 7
  • Print just the sum
  • Store result in a variable first

Input

  • No input required

Output

12

Learn this firstChapter 4 · Python Variables: Store and Use Values
solution.py
# write your code here

EXPECTED OUTPUT

112

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.