|
3 | 3 | ### is_palindrome.py |
4 | 4 |
|
5 | 5 | - Create a file *is_palindrome.py* |
6 | | -- A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward |
7 | | -- for example: "147741" |
8 | | -- Another example: "Was it a cat I saw?" |
| 6 | + |
| 7 | +- A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward. |
| 8 | +- For example: "147741" |
| 9 | + Another example: "Was it a cat I saw" |
| 10 | +- Write a Python function that gets a string from the user. |
| 11 | + The function returns `True` if the input is a palindrome. |
| 12 | + Otherwise, return `False`. |
9 | 13 |
|
10 | 14 | ## sum_list.py |
11 | 15 |
|
12 | 16 | - Create a file *sum_list.py* |
13 | | -- Write a Python function to sum all the numbers in a list |
14 | | -- Run the function with the list [1,2,7,8,48] |
| 17 | + |
| 18 | +- Write a Python function that sums all the numbers in a list of numbers. |
| 19 | +- Run the function on the list [1, 2, 7, 8, 48] |
| 20 | +Expected output: 66 |
15 | 21 |
|
16 | 22 | ### multiply_list.py |
17 | 23 |
|
18 | 24 | - Create a file *multiply_list.py* |
19 | | -- Write a Python function to multiply all the numbers in a list |
20 | | -- Run the function with the list [8, 2, 3, -1, 7] |
21 | | -Expected Output : -336 |
22 | | - |
23 | | -### dates.py |
24 | 25 |
|
25 | | -- Create a file *sundays.py* |
26 | | -- Write a Python program that print yesterday, today, tomorrow dates (use datetime module) |
| 26 | +- Write a Python function that multiples all the numbers in a list of numbers. |
| 27 | +- Run the function on the list [8, 2, 3, -1, 7] |
| 28 | +Expected Output : -336 |
27 | 29 |
|
28 | | -### sundays.py |
| 30 | +### dates.py |
29 | 31 |
|
30 | | -Write a Python program that get a specific year and print all the Sundays dates of that year (use datetime module) |
| 32 | +- Create a file *dates.py* |
31 | 33 |
|
| 34 | +- Write a Python program that prints the dates of yesterday, today, tomorrow (use datetime module) |
32 | 35 |
|
| 36 | +### sundays.py |
33 | 37 |
|
| 38 | +Write a Python program that gets a specific year and print all the Sundays' dates of that year (use datetime module) |
0 commit comments