for i in range(5):, repeat 5 times, score = int(input("Enter score: ")), ask for a score and store it as a number, if score >= 40:, check if the score is a pass, pass_count = pass_count + 1, add 1 to the pass counter, if score >= 80:, check if the score wins a prize, prize_count = prize_count + 1, add 1 to the prize counter, print("Pass"), show the word Pass on the screen, print("Try again"), show the words Try again on the screen, print("Prize"), show the word Prize on the screen, indentation, shows which lines belong inside the loop or if statement, range(5), creates 5 loop turns: 0, 1, 2, 3 and 4, counter, a variable that keeps score.

만든이

순위표

비주얼 스타일

옵션

AI 강화: 이 활동에는 AI가 생성한 콘텐츠가 포함되어 있습니다. 더 알아보세요.

템플릿 전환하기

자동 저장된 게임을 복구할까요?