Today
Just writing things down
Beginning of Class
Bro, I'm still trying to work out how github works. I think I'm super far behind. I just figured out on Thursday how to make a notebook but I can't do much of anything else. That's no bueno. I changed the name of my repository but now I'm having some errors with things. I changed two things in the _config.yml file on github, I changed the name of the repository in that file to the new one. I think that might have messed some things up though, I'm not sure why. I'm gonna save and commit this change (the whole file) so I can test if it still has errors.
def question_and_answer(prompt):
print("Question: " + prompt)
msg = input()
print("Answer: " + msg)
question_and_answer("What month is it?")
question_and_answer("What is my fifth period class?")
question_and_answer("When does school end?")
import getpass, sys
def question_with_response(prompt):
print("Question: " + prompt)
msg = input()
return msg
questions = 3
correct = 0
print('Hello, ' + getpass.getuser() + " running " + sys.executable)
print("You will be asked " + str(questions) + " questions.")
question_and_answer("Are you ready to take a test?")
rsp = question_with_response("What month is it?")
if rsp == "august":
print(rsp + " is correct!")
correct += 1
else:
print(rsp + " is incorrect!")
rsp = question_with_response("What is the free period called?")
if rsp == "offroll":
print(rsp + " is correct!")
correct += 1
else:
print(rsp + " is incorrect!")
rsp = question_with_response("When does school end?")
if rsp == "3:45":
print(rsp + " is correct!")
correct += 1
else:
print(rsp + " is incorrect!")
print(getpass.getuser() + " you scored " + str(correct) +"/" + str(questions))