Back to Lessons
BeginnerBasics

Subtraction Fun

lesson_13.py
>>> ## Concept Subtraction is a basic mathematical operation used to find the difference between numbers. In Python, subtraction is performed using the minus sign (`-`). For example, you can subtract two numbers like this: ```python result = 10 - 4 print(result) # This will output 6 ``` You can subtract integers as well as floating-point numbers. Subtraction works from left to right, meaning the number on the left is subtracted by the number on the right. ## Practice Let's practice what you've learned about subtraction. Your task is to find the difference between 50 and 13. **Instructions:** 1. Use the subtraction operator (`-`). 2. Calculate `50 - 13`. 3. Print the result to see the correct output. Here is the starter code: ```python # Write your code below difference = 50 - 13 print(difference) # Expected output: 37 ``` Run the code to check if it prints the correct result. It should show "37" in the output.
Code Editor

Sign in to submit your answer and earn XP.