lucydot / Induction_checklist

Other
1 stars 0 forks source link

Question proposal #10

Open lucydot opened 2 years ago

lucydot commented 2 years ago

Authors

@lucydot

Title

Summing up odd numbers

Question

Write a for loop that sums up all odd numbers from 0 to 30.

Answer

sum = 0
for number in range(1,30,2):
    sum += number
print(sum)

Checklist items

✨ @lucydot has up-voted! Total votes: 1

lucydot commented 2 years ago

choochoo vote up

choochoo-bot commented 2 years ago

Your vote has been registered ☑️