What's wrong with this code?

I’m trying to create a little quiz, yet I have issues:

# This is the quiz the user will take
# The topic is about "The World"

def main():
	print('Greetings, the topic of this quiz is about: The World')
	print('For multiple choice questions, please enter T or F (do not use caps however!)')

def q1():
# Question 1
	q_1 = input('What is the name of the country that has Ottawa as its capital?: A) Latvia B) Ecuador C) Canada ')
	if q_1 == c
# Call the 'main' function

This is just a little sample of what I’ve done so far.

1 Like

this line

if q_1 == c

c is string so it should be inside quotation marks and you forgot to use : after if statement

1 Like