Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
The print function
Variables
Math in Python
13. Multiplying and dividing numbers
The input function
Summary

Instruction

Great. You can also multiply (*) or divide (/) numbers in the same way:

big_number = 12 * 34
small_number = 250 / 100

Note that small_number takes two integers, but the result is a float (250/100 = 2.5). Python will automatically detect and set the new variable to a float type.

Exercise

What is the result of 34*67? Print the answer.

Stuck? Here's a hint!

Simply put the multiplication inside the parentheses of print().