2017-03-11 1 views
-1

그래서 나는 coinflip 스크립트처럼하기를 정말로 원하고 있으며, 마지막 인쇄물에 '잘못된 구문'을줍니다. 제발 도와 주시겠습니까?Python coinflip invalid syntax print 도움 pls

import random 
print('Choose a number between 1 and 0') 
answer=input() 
number=random.choice('10') 
random.choice('10') 
print(random.choice('10')) 
if answer == (number 
       print("You won")) 

답변

1
if answer == (number 
       print("You won")) 

되어야

if answer == number: 
    print("You won")