8000 Added in the files for the exercises · zfoxpython/intro-to-python@b301e66 · GitHub
[go: up one dir, main page]

Skip to content

Commit b301e66

Browse files
committed
Added in the files for the exercises
1 parent dcfca73 commit b301e66

File tree

9 files changed

+35151
-4
lines changed

9 files changed

+35151
-4
lines changed

session_07/slides/session_7.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ len()
236236

237237
# Why do we use functions?
238238

239-
- Let you re-use code
239+
- Lets you re-use code
240240
- Break large problems into smaller ones
241241

242242
---
@@ -490,4 +490,3 @@ def calc_factorial(x):
490490

491491
# [fit] Coding Time
492492
## Section B
493-

session_08/exercises/exercises_8.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Session 8 Exercises
2-
## Section A
2+
All of these questions will use a set of pre-made files with data in.
3+
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+
6+
7+
# Section A
38
1. Read the file 'jabberwocky.txt' and print its content to the screen
49
2. Read the file 'austen.txt' and print the amount of lines in the file
510
3. Each line of the file 'numbers.txt' contains a number, write a script to add up all the values in the file
611

7-
## Section B
12+
# Section B
813
1. Ask the user to enter their name and append this to a file called 'register.txt'
914
2. Create a new file called 'even.txt' that contains only the even numbers from the file 'numbers.txt'
1015
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

Comments
 (0)
0