# review and run code
"hello" < "Hello"
# review and run code
"Aardvark" > "Zebra"
# review and run code
'student' != 'Student'
# review and run code
print("'student' >= 'Student' is", 'student' >= 'Student')
print("'student' != 'Student' is", 'student' != 'Student')
# review and run code
"Hello " + "World!" == "Hello World!"
msg = "Hello"
# [ ] print the True/False results of testing if msg string equals "Hello" string
msg=="Hello"
greeting = "Hello"
# [ ] get input for variable named msg1, and ask user to 'Say "Hello"'
# [ ] print the results of testing if msg1 string equals greeting string
msg1=input("Say Hello")
msg1 == greeting
# [ ] review and run code
msg = "Save the notebook"
if msg.lower() == "save the notebook":
print("message as expected")
else:
print("message not as expected")
# [ ] review and run code
msg = "Save the notebook"
prediction = "save the notebook"
if msg.lower() == prediction.lower():
print("message as expected")
else:
print("message not as expected")
# [ ] get input for a variable, answer, and ask user 'What is 8 + 13? : '
# [ ] print messages for correct answer "21" or incorrect answer using if/else
# note: input returns a "string"
anwser = input("What is 8 + 13?")
if anwser == "21":
print ("correct")
else:
print ("incorrect")
# [ ] Create the program, run tests
def tf_quiz(question, answer):
info=("Question: "+question+"Answer: "+ answer)
return info
getAnswer=input("(T/F) Octopuses have 3 hearts? ")
correct_ans="t"
if getAnswer.lower()==correct_ans:
print ("Correct!")
else:
print ("Incorrect!")