You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1902,10 +1902,11 @@ for char in 'pizza':
1902
1902
</b></details>
1903
1903
1904
1904
<details>
1905
-
<summary>Write a function to return the sum of one or more numbers. The user will decide how many numbers to use.</summary><br><b>
1906
-
```
1905
+
<summary>Write a function to return the sum of one or more numbers. The user will decide how many numbers to use</summary><br><b>
1906
+
1907
1907
First you ask the user for the amount of numbers that will be use. Use a while loop that runs until amount_of_numbers becomes 0 through subtracting amount_of_numbers by one each loop. In the while loop you want ask the user for a number which will be added a variable each time the loop runs.
1908
1908
1909
+
```
1909
1910
def return_sum():
1910
1911
amount_of_numbers = int(input("How many numbers? "))
0 commit comments