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: session_08/exercises/exercises_8.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,12 @@ All of these questions will use a set of pre-made files with data in.
4
4
To get these files go to: https://replit.com/@ihfcode/pythontwfiles and click on the "fork" button to make a copy of the repl and then you can start to write your code.
5
5
6
6
7
-
# Section A
7
+
##Section A
8
8
1. Read the file 'jabberwocky.txt' and print its content to the screen
9
9
2. Read the file 'austen.txt' and print the amount of lines in the file
10
10
3. Each line of the file 'numbers.txt' contains a number, write a script to add up all the values in the file
11
11
12
-
# Section B
12
+
##Section B
13
13
1. Ask the user to enter their name and append this to a file called 'register.txt'
14
14
2. Create a new file called 'even.txt' that contains only the even numbers from the file 'numbers.txt'
15
15
3. 'secret.txt' contains a secret message. Each number represents the letter of the alphabet where 1 = A, 2 = B ... Z = 26. Work out what the secret message says
0 commit comments