I entered computer science for the first time this year and learned C language and Python, but the professor didn't teach me any Python They're telling me to code it in Python, but I don't know what to do ㅠ<
python
Python actors are students.
It's a flowchart that takes num 10 times and outputs the sum and average of the numbers, right?
count = sum = 0
while True:
count += 1
num = int(input("Input number please : "))
sum = sum + num
if count >= 10:
break
else:pass
ave = sum / 10
print("Thank you. sum : {}, ave : {}".format(sum, ave))
How about writing it like this?
© 2025 OneMinuteCode. All rights reserved.