태지쌤

로봇 & 코딩교육 No.1 크리에이터

파이썬/exercise

5-2. python 최고/최소 점수얻기(for반복문 연습)

태지쌤 2023. 1. 4. 11:05
반응형
# 🚨 Don't change the code below 👇
student_scores = input("Input a list of student scores : ").split()
for n in range(0, len(student_scores)):
  student_scores[n] = int(student_scores[n])
print(student_scores)
# 🚨 Don't change the code above 👆

#Write your code below this row 👇
max = 0
for score in student_scores:
	if score > max:
		max = score

print(f"The highest score in the class is: {max}")
반응형