0

Hi I'm trying to make some quiz programs but my code is stuck in input()

print("나라 퀴즈에 오신 여러분들을 환영합니다!\n이 퀴즈에서 여러분들은 국기를 보고 나라 이름을 맞추시면 됩니다!")
print("------------------------------------------------------------------------------------------------------------------------------")
print("\n1. 아메리카\n2. 아프리카\n3. 유럽\n4. 아시아\n5. 오세아니아\n6. 모든 나라\n")
continent=input("어느 대륙의 퀴즈를 맞출 건지 선택해주세요: ")

if(continent==1):
    quizamerica()

my code does not run after line if(continent==1) and just stops the program after line continent=input("어느 대륙의 퀴즈를 맞출 건지 선택해주세요: ")

Help me please.

1 Answers1

2

The input() function returns a string. Try if(continent == '1').

DimK
  • 301
  • 4
  • 16