2-6 퀴즈 점수 계산하기

신정빈·2022년 7월 18일
0
answers =input("퀴즈 결과를 입력해 주세요.(예: OOXOXXO): ").split("x")
score = 0
for n in answers:
    for j in range(0, len(n) + 1):
        score = score + j
print(score)    
profile
떠오르는 태양

0개의 댓글