Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Simple Math: Add & Subtract | Getting Started
Introduction to Python (generated task tests)

Swipe to show menu

book
Simple Math: Add & Subtract

Python makes math operations simple and powerful. Use the following basic arithmetic operators:

  • Addition ( + )

  • Subtraction ( - )

  • Multiplication ( * )

  • Division ( / )

Task

Swipe to start coding

Complete and output the arithmetic operations below

  • Add the price of milk (5.42) and the price of bread (4.39). Use + operator
  • Subtract the price of all items in the shopping cart (12.30) and value of gift card (5.50). Use - operator

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Simple Math: Add & Subtract

Python makes math operations simple and powerful. Use the following basic arithmetic operators:

  • Addition ( + )

  • Subtraction ( - )

  • Multiplication ( * )

  • Division ( / )

Task

Swipe to start coding

Complete and output the arithmetic operations below

  • Add the price of milk (5.42) and the price of bread (4.39). Use + operator
  • Subtract the price of all items in the shopping cart (12.30) and value of gift card (5.50). Use - operator

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt