Added code for lecture 2026-11-10

This commit is contained in:
Edward Bigos 2026-11-10 12:28:09 -05:00
commit 07b9e54bf0
52 changed files with 1248 additions and 1 deletions

View file

@ -0,0 +1,16 @@
#!/usr/bin/python3
# grades01
# List element manipulation.
scores = [75, 95, 90, 87, 99, 100, 97]
# This is unnecessary and just here for debugging.
print(scores)
# We will sum the scores. Initialize sum value to zero then add each value to the sum.
sum = 0
for score in scores:
sum = sum + score
print("The sum of the seven scores is ",sum)
print("The average of the seven scores is ",sum/7)