Student Teaching Day 1
Assignments and HW
Changing Values
num1 = 5
num2 = 9
num1 = num2
print(num1)
print(num2)
num1 = 15
num2 = 25
num3 = 42
num2 = num3
num3 = num1
num1 = num2
print(num1)
print(num2)
print(num3)
num2 += num1
print(num1)
print(num2)
print(str(num1)+ str(num2))
print(num1 + num2)
quesCount = 0
score = 0
# Use a dictionary for the questions
quesList = ["Question1", "Question2", "Question3", "Question4"]
# Use a dictionary for the correct solutions
soluList = ["Solution1", "Solution2", "Solution3", "Solution4"]
quesAmount= len(quesList)
def question_and_answer(prompt, answer):
print("Question: " + prompt)
msg = input()
print("Answer: " + msg)
if answer == msg:
print("Correct Answer")
global correct
correct+=1
else:
print ("Incorrect Answer")
def quesCount (quesAmount):
print(quesList[quescount] + "\n")
guess = input()
if(guess == soluList[quesAmount]):
score+=1
print("Correct! Score: ")
else:
print("Incorrect! The correct answer was " + soluList(quesCount) + "\n")
quesCount += 1
print("Final score: " + str(score))
quesCount = 0
score = 0
# Use a dictionary for the questions
quesList = ["What high school do you attend?", "What is Del Norte's Mascot?", "What period was this lesson taught?", "What student teaching day is this?"]
# Use a dictionary for the correct solutions
soluList = ["Del Norte", "NightHawk", "Period 3", "Day 1"]
quesAmount= len(quesList)
while quesCount < quesAmount:
print(quesList[quesCount] + "\n")
guess = input()
if(guess == soluList[quesCount]):
score += 1
print("Correct! Score: ")
else:
print("Incorrect! The correct answer was " + soluList[quesCount] + "\n")
print(quesCount, "of", quesAmount)
quesCount += 1