Exercise Set 1

Exercise 1 of 6

What will be the output of this program?
print("Let's learn Python")

Your answer

Exercise 2 of 6

What will be the output of this program?
print("apple")
print("banana")

Your answer

Exercise 3 of 6

What will be the output of this program?
# Hello world
print("How are you?")
# I'm doing well
print("Goodbye")

Your answer

Exercise 4 of 6

Name all of the unique variables used in this program.
print("calculating area")
diameter = input("Enter the diameter of the circle: ")
PI = 3.14159
radius = float(diameter) / 2
area = PI * radius * radius
print(f"The area of a circle with diameter {diameter} is {area}.")

Your answer

Exercise 5 of 6

Name all of the unique functions used in this program.
print("calculating area")
diameter = input("Enter the diameter of the circle: ")
PI = 3.14159
radius = float(diameter) / 2
area = PI * radius * radius
print(f"The area of a circle with diameter {diameter} is {area}.")

Your answer

Exercise 6 of 6

Name all of the unique operators used in this program.
print("calculating area")
diameter = input("Enter the diameter of the circle: ")
PI = 3.14159
radius = float(diameter) / 2
area = PI * radius * radius
print(f"The area of a circle with diameter {diameter} is {area}.")

Your answer