#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목[re]점수계산프로그램 질문입니다.2020-04-06 17:59
작성자

일단 에러메세지를 같이 올려주시면 좋을거 같습니다.


3번째라인-> totalscore 이름이 틀렸습니다. 

6번째라인-> continue가 필요없습니다.


totalscore =[70, 80, 90, 100, 90, 50, 60]

i=0

for score in totalscore:

    i=i+1

    if score>=80: 

        print("학생 %d 번 학생은 합격입니다." %i)

    else:

        print("학생 %d 번 학생은 불합격입니다." %i)

댓글
이전점수계산프로그램 질문입니다.2020-04-06
다음[re][re]점수계산프로그램 질문입니다.2020-04-07