Bringing it all together


#1

# Hallo

monty = True
monty =  ** 1.234
monty_python = ** python

Write a single-line comment on line 1. It can be anything! (Make sure it starts with #)
Set the variable monty equal to True.
Set another variable python equal to 1.234.
Set a third variable monty_python equal to python squared.


#2

Instruction:

Set another variable python equal to 1.234.

so your variable name should be python not monty
next
Set a third variable monty_python equal to python squared.

have a look at the Exponentiation lesson


#4

# Hallo

monty = True
python = ** 2
mounty = ** 2

Oops, try again. Did you create a variable called monty?


#5

Please see my comments for your code:

# Hallo

monty = True
python = ** 2 # should be python = 1.234
mounty = ** 2 # should be monty_python = python ** 2

#6

why do we need to write
monty_python=python**2


#7

** denotes exponentiation. Saying python ** 2 is telling the program to square the value for python.


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.