day 5 WIP
This commit is contained in:
26
005/task.py
Normal file
26
005/task.py
Normal file
@ -0,0 +1,26 @@
|
||||
# student_scores = [150, 142, 185, 120, 171, 184, 149, 24, 59, 68, 199, 78, 65, 89, 86]
|
||||
|
||||
# max_score = 0
|
||||
|
||||
# for score in student_scores:
|
||||
# if score > max_score:
|
||||
# max_score = score
|
||||
|
||||
# print(max_score)
|
||||
|
||||
# total = 0
|
||||
|
||||
# for number in range(1, 101):
|
||||
# total += number
|
||||
|
||||
# print(total)
|
||||
|
||||
for number in range(1, 101):
|
||||
if number % 3 == 0 and number % 5 == 0:
|
||||
print("FizzBuzz")
|
||||
elif number % 3 == 0:
|
||||
print("Fizz")
|
||||
elif number % 5 == 0:
|
||||
print("Buzz")
|
||||
else:
|
||||
print(number)
|
||||
Reference in New Issue
Block a user