Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Simple Arithmetics | Section
Python Basics for Data Analysis
Abschnitt 1. Kapitel 3
single

single

bookSimple Arithmetics

Swipe um das Menü anzuzeigen

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

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
Aufgabe

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.
  • Multiply the price of peanut butter (7.32) and the tax rate (0.2) to calculate the tax value. Use * operator.
  • Divide price of eggs (8.30) and the number of eggs (20) to calculate the price of single egg. Use / operator.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 3
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt