Skip to content

Commit 552d4a0

Browse files
authored
Fix some phrasing on the 09_Extra section (RedHat-Israel#420)
1 parent 7dbfa27 commit 552d4a0

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

docs/course_materials/exercises/09_Extra/class_exercise_1_solution.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def joing_files(file_name1, file_name2, out_file_name):
1313
print('Reading or writing error with one of the files!')
1414

1515

16-
file_name_1 = input("Enter the first file name: ")
17-
file_name_2 = input("Enter the secound file name: ")
18-
file_name_3 = input("Enter the thired file name: ")
16+
file_name_1 = input("Enter the first file name: ")
17+
file_name_2 = input("Enter the second file name: ")
18+
file_name_3 = input("Enter the third file name: ")
1919

2020
joing_files(file_name_1, file_name_2, file_name_3)

docs/course_materials/exercises/09_Extra/homework.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,36 @@
33
### is_palindrome.py
44

55
- 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`.
913

1014
## sum_list.py
1115

1216
- 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
1521

1622
### multiply_list.py
1723

1824
- 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
2425

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
2729

28-
### sundays.py
30+
### dates.py
2931

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*
3133

34+
- Write a Python program that prints the dates of yesterday, today, tomorrow (use datetime module)
3235

36+
### sundays.py
3337

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

Comments
 (0)