Skip to content

Commit 73ac855

Browse files
author
abregman
committed
Fix format
1 parent 10f0b97 commit 73ac855

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,10 +1902,11 @@ for char in 'pizza':
19021902
</b></details>
19031903

19041904
<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+
19071907
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.
19081908

1909+
```
19091910
def return_sum():
19101911
amount_of_numbers = int(input("How many numbers? "))
19111912
total_sum = 0
@@ -1916,7 +1917,6 @@ def return_sum():
19161917
return total_sum
19171918
19181919
```
1919-
19201920
</b></details>
19211921

19221922
<details>

0 commit comments

Comments
 (0)