You are on page 1of 4

# Python Reviewer - Cantal and Correa

name = input("What is your name?")


grade = input("What is your section?")

print("Welcome to the Python Reviewer! Make sure to answer in lowercase to avoid


getting errors.")

levels = "Easy", "Average", "Hard"


score = 0
print(levels)

print("Let's start with level Easy!")


print("Question 1: It is a computer programming language that is often used to
build websites and software, automate tasks, and analyze data.")
print("a = Python")
print("b = Javascript")
print("c = Coding")
print("d = Snake ")

a = "Python"
b = "Javascript"
c = "Coding"
d = "Snake"

ans_1e = input("What is your answer?")

if ans_1e == "a":
print("Correct! Good job!")
score +=1
else:
print("Wrong answer, try again on the next question.")
print()

print("Question 2: It is a diagram depicting a process, a system or a computer


algorithm.")
print("a = Plot Diagram")
print("b = Venn Diagram")
print("c = Flow Chart")
print("d = Decision Flow")

a = "Plot Diagram"
b = "Venn Diagram"
c = "Flow Chart"
d = "Decision Flow"

ans_2e = input("What is your answer?")

if ans_2e == "c":
print("Correct! Good job!")
score +=1
else:
print("Wrong answer, try again on the next question.")
print()

print("Question 3: It is a data type that is a real number with a point


represetation.")
print("a = Integer")
print("b = Boolean")
print("c = String")
print("d = Float")

a = "Integer"
b = "Boolean"
c = "String"
d = "Float"

ans_3e = input("What is your answer?")

if ans_3e == "d":
print("Correct! Good job!")
score +=1
else:
print("Wrong answer, try again on the next question.")
print()

print("Let's go onto level Average!")


print("Question 1: It is a data type used where numbers are needed to be stored.")
print("a = Integer")
print("b = Float")
print("c = Boolean")
print("d = String")

a = "Integer"
b = "Float"
c = "Boolean"
d = "String"

ans_1a = input("What is your answer?")

if ans_1a == "a":
print("Correct! Good job!")
score +=2
else:
print("Wrong answer, try again on the next question.")
print()

print("Question 2: It is a simple way of writing programming code in English")


print("a = Coding")
print("b = Pseudocode")
print("c = Algorithm")
print("d = None of the above")

a = "Coding"
b = "Pseudocode"
c = "Algorithm"
d = "None of the above"

ans_2a = input("What is your answer?")

if ans_2a == "b":
print("Correct! Good job!")
score +=2
else:
print("Wrong answer, try again on the next question.")
print()
print("Question 3: The following consists of ways to present an algorithm EXCEPT:")
print("a = Flow chart")
print("b = Pseudocode")
print("c = Programming")
print("d = All of the above")

a = "Flow chart"
b = "Pseudocode"
c = "Programming"
d = "All of the above"

ans_3a = input("What is your answer?")

if ans_3a == "d":
print("Correct! Good job!")
score +=2
else:
print("Wrong answer, try again on the next question.")
print()

print("Buckle up! Here come the hard questions!")


print("Question 1: What does the following python code print?")
print("print(5 + 3 * 2")
print("a = 16")
print("b = 13")
print("c = 11")
print("d = 10")

a = "16"
b = "13"
c = "11"
d = "10"

ans_1h = input("What is your answer?")

if ans_1h == "c":
print("Correct! Good job!")
score +=3
else:
print("Wrong answer, try again on the next question.")

print("Question 2: Which of the following statements checks if a number is even in


Python?")
print("a = if num % 2 == 0")
print("b = if num / 2 == 0")
print("c = if num == 0")
print("d = if num * 2 == 0")

a = "if num % 2 == 0"


b = " if num / 2 == 0"
c = "if num == 0"
d = "if num * 2 == 0"

ans_2h = input("What is your answer?")

if ans_2h == "a":
print("Correct! Good job!")
score +=3
else:
print("Wrong answer, try again on the next question.")
print()

print("Question 3: Which of the following is the correct way to define lists in


Python?")
print("a = my_list = {1,2,3}")
print("b = my_list = (1,2,3)")
print("c = my_list = [1,2,3]")
print("d = my_list = 1,2,3")

a = "my_list = {1,2,3}"
b = "my_list = (1,2,3)"
c = "my_list = [1,2,3]"
d = "my_list = 1,2,3"

ans_3h = input("What is your answer?")

if ans_3h == "c":
print("Correct! Good job!")
score +=3
else:
print("Wrong answer!")
print()

print("Thank you for reviewing with me!" , name , "Your final score is" , score)

You might also like