Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #string_to_check = 'Correct Answer'
- #string_correct = 'Correct Answer'
- #answer_status = string_correct == string_to_check
- #print(answer_status)
- a_1 = 'a'
- a_2 = 'b'
- a_3 = 'c'
- t_1 = 'b1'
- t_2 = 'b2'
- t_3 = 'b3'
- correct_answers = []
- print(t_1)
- u_1 = input('Task 1: \n')
- print(t_2)
- u_2 = input('Task 2: \n')
- print(t_3)
- u_3 = input('Task 3: \n')
- st_1 = u_1 == a_1
- st_2 = u_2 == a_2
- st_3 = u_3 == a_3
- correct_answers.append(st_1)
- correct_answers.append(st_2)
- correct_answers.append(st_3)
- #print(correct_answers)
- correct_counter = 0
- for answers in correct_answers:
- print(answers)
- if answers == True:
- correct_counter = correct_counter+1
- print("Your number of corrects:")
- print(correct_counter)
Advertisement
Add Comment
Please, Sign In to add comment