Lecture 11/17/2026
This commit is contained in:
parent
07b9e54bf0
commit
bf3265103a
44 changed files with 1195 additions and 3 deletions
10
lecture20261117/for01/for06.py
Normal file
10
lecture20261117/for01/for06.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
# https://www.programiz.com/python-programming/for-loop
|
||||
digits = [70, 91, 85]
|
||||
|
||||
scoreSum = 0
|
||||
for i in digits:
|
||||
print(i)
|
||||
scoreSum += i
|
||||
else:
|
||||
print("The average is ",scoreSum/len(digits))
|
||||
Loading…
Add table
Add a link
Reference in a new issue