Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 289 Bytes

File metadata and controls

15 lines (14 loc) · 289 Bytes

Step 2: Create a variable which is a whole number, compute the square and cube of it

>>> num = 4
>>> sqr = num * num
>>> sqr
16
>>> cube = num * num * num
>>> cube
64
>>> # A better way to do this
>>> num ** 2
16
>>> num ** 3
64
>>>