8000 Updating format for github · zfoxpython/intro-to-python@b43f9ce · GitHub
[go: up one dir, main page]

Skip to content

Commit b43f9ce

Browse files
committed
Updating format for github
1 parent 5154b26 commit b43f9ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

session_07/exercises/exercises_7.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
1. Write a function called is_odd that will return True or False if the integer passed as a parameter is odd (hint: x % 2 will return true for all odd numbers)
1616
2. Write a function that accepts a word and returns it backwards, e.g. 'hello' -> 'olleh'
1717
3. Write a recursive function that accepts a number and prints that number of stars, followed by ever decreasing stars on each line, E.g:
18+
```
1819
*****
1920
****
2021
***
2122
**
2223
*
24+
```
2325
4. Create a padlock function. You need to be able to pass in a passcode and if its correct it should return "Unlock", else "Locked"
2426
5. Write a function that returns the sum of multiples of 3 and 5 between 0 and limit (parameter). For example, if limit is 20, it should return the sum of 3, 5, 6, 9, 10, 12, 15, 18, 20
2527
6. Write a function called is_prime() that accepts a number and return True or False if the number of prime or not

0 commit comments

Comments
 (0)
0