feat(r-1.4_scratch.py): appended calculated values of n to a list
This commit is contained in:
@@ -13,8 +13,10 @@ def squares_sum(n):
|
||||
list = []
|
||||
while n >= 2:
|
||||
n = n - 1
|
||||
print(n)
|
||||
list.append(n)
|
||||
print(list)
|
||||
|
||||
|
||||
|
||||
|
||||
squares_sum(12)
|
||||
squares_sum(5)
|
||||
Reference in New Issue
Block a user