8000 Finish review and Marp exports. · zfoxpython/intro-to-python@cf5e28b · GitHub
[go: up one dir, main page]

Skip to content

Commit cf5e28b

Browse files
committed
Finish review and Marp exports.
1 parent b5a171b commit cf5e28b

File tree

15 files changed

+694
-213
lines changed

15 files changed

+694
-213
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ The course is a total beginner’s introduction to programming. It takes student
33

44

55
# Prerequisites:
6-
- [ ] Create a GitHub account [here](https://github.com/).
7-
- [ ] Create a Replit account through your GitHub account [here](https://replit.com/).
6+
- [ ] Create a GitHub account [here](https://github.com/) if you don't have one already.
7+
- [ ] Create a Replit account through your GitHub account [here](https://replit.com/). If you already have a Replit account, go to [Account](https://replit.com/account), and in the "Connected services" section, connect to GitHub.
88

99
# Syllabus
1010

session_00/answers_0.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@
2626

2727
12. `echo Whippet > dogs.txt`.
2828

29-
13. `date`.
29+
13. `cat dogs.txt`
3030

31-
14. `history`.
31+
14. `date`.
3232

33-
15. `clear`.
33+
15. `history`.
34+
35+
16. `clear`.
3436

3537

3638
## Section B

session_00/exercises_0.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ Before you start, make sure that you are using the Shell 🐚 (not the console).
2929

3030
12. Write the line "Whippet" in the dogs.txt file using `echo <text> > <file_name.txt>`.
3131

32-
13. Display the date in the terminal using the `date` command.
32+
13. Display what is inside the dogs.txt file by using `cat <file_name.txt>`.
3333

34-
14. Display the recent history of your bash commands using the `history` command.
34+
15. Display the date in the terminal using the `date` command.
3535

36-
15. Clear your terminal with the `clear` command.
36+
15. Display the recent history of your bash commands using the `history` command.
37+
38+
16. Clear your terminal with the `clear` command.
3739

3840

3941
# Section B
@@ -42,7 +44,7 @@ Before you start, make sure that you are using the Shell 🐚 (not the console).
4244

4345
2. Create a Markdown file called "my_markdown_recipe" using `touch <file_name.md>`.
4446

45-
3. Inside the "my_markdown_recipe.md" file, type a recipe you like using the Markdown syntax. If you don't have any ideas, or writing up in Markdown seems too much of a chore, just ask [ChatGPT](https://chat.openai.com/) to write one for you (Ex: "Come up with a recipe in markdown format."), and then paste it into your file.
47+
3. Inside the "my_markdown_recipe.md" file, type a recipe you like using the Markdown syntax. If you don't have any ideas, or writing up in Markdown seems too much of a chore, just ask [ChatGPT](https://chat.openai.com/) to write one for you (Ex: "Come up with a recipe in markdown format."), then paste it into your file.
4648
- When you are done, click on the "open preview" option to see the formatted version.
4749

4850
Great job on getting so far, just one more section to go!

session_00/slides_0.md

Lines changed: 71 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,91 @@
1-
# [fit] KPMG: Code
2-
## [fit] Python — Session 6 — Lesson
1+
# KPMG: Code
2+
## Python — Session 0 — Lesson
33

44
---
55

6-
# [fit] OS, CLI, GIT & IDE​s
6+
# Course Overview
7+
8+
9+
---
10+
11+
# Course Overview
12+
- 10 weeks
13+
- Tuesday 11am - 12pm —> Virtual lesson / Thursday 11am - 12pm —> In person lesson (at CSQ - London).
14+
- Friday 11am - 11.30am —> Virtual drop in session.
15+
16+
---
17+
18+
## Any Questions?
19+
20+
---
21+
22+
# Operating Systems (OS), Command-line interface (CLI), Git & IDE​s
723

824
---
925

1026
# Objectives
1127

1228
- Brief overview of Operating Systems​
13-
- Understand Terminal/CLI​
14-
- Understand Source Control Management & Git​
29+
- Understand and use Terminal/CLI​
30+
- Understand and use Source Control Management & Git​
1531
- Brief overview of Markdown and IDEs
1632

1733
---
1834

19-
# [fit] Operating Systems (OS)
35+
# Operating Systems (OS)
2036

2137
---
2238

2339
# Operating systems (OS)
2440

25-
- Software that communicates with machine hardware.​
41+
- **Software that communicates with machine hardware.​**
2642

27-
- Can you name some popular examples?
43+
- Can you name some popular examples?
2844

2945
---
3046

3147
# Operating systems
3248

33-
- Some include a graphical user interface (GUI) for manipulation (Windows, MAC OS)​
49+
- Some include a graphical user interface (GUI) for manipulation (Windows, MAC OS)​.
3450

35-
- Linux has multiple distributions - some can include a GUI (e.g. Ubuntu) while some don’t.​
51+
- Linux has multiple distributions - some can include a GUI (e.g. Ubuntu), while some don’t.​
3652

3753
- When would we want or not want to have a GUI?
3854

3955
---
4056

4157
# Linux
4258

43-
- Popular operating system based on UNIX​
59+
- Popular operating system based on **UNIX​.**
4460

45-
- Open-source, multiple distributions​
61+
- **Open-source, multiple distributions​.**
4662

47-
- Commonly used for hosting web servers and scientific computing
63+
- Commonly used for **hosting web servers and scientific computing.**
4864

4965
---
5066

51-
# [fit] Command-line Interface (CLI) and Bash
67+
# Command-line interface (CLI) and Bash
5268

5369
---
5470

5571

56-
# CLI - Command Line Interface
72+
# CLI - Command-line interface
5773

58-
- Also referred to as the ‘Console’ or ‘Terminal’.​
74+
- Also referred to as the **‘Console’** or **‘Terminal’**.​
5975

60-
- Terminal app on your Mac (you will have it by default because Mac OS is UNIX based) or Git Bash on your Windows (needs downloading)
76+
- **Used to run programs, manage files and interact with the computer.**
6177

6278
---
6379

6480
# Bash - Bourne Again SHell
6581

66-
- Command Language for most Linux distributions​
82+
- **Command Language for most Linux distributions​.**
6783

68-
- sh = Bourne Shell​
84+
- **sh = Bourne Shell​**
6985

70-
- The Shell is the layer between the Operating System and the User (or other services)
86+
- The Shell is the **layer between** the Operating System (OS) and the User (or other services).
87+
88+
- Can be found it in the **Terminal app** on your Mac (you will have it by default because Mac OS is UNIX based) or in **Git Bash** on your Windows (not native -> needs to be installed).
7189

7290
---
7391

@@ -139,56 +157,61 @@ clear # Clears the terminal screen
139157

140158
- TAB - autocompletes commands, file names, or directory names for you​.
141159

142-
- UP/DOWN Arrows - Scroll backward and forwards through previous commands you’ve typed in the current session. ​
160+
- UP / DOWN Arrows - Scroll backward and forwards through previous commands you’ve typed in the current session. ​
143161

144162
- F3 - Repeat the previous command​.
145163

146-
- CTRL + C - Abort the current line you’re typing or a command that is currently executing​.
164+
- CTRL + C - Abort the current line you’re typing or a command that is currently executing​.
147165

148166

149167
---
150168

151-
# [fit] Source Control Management(SCM) and Git
169+
# Coding Time
170+
## Section A
171+
172+
---
173+
174+
# Source Control Management(SCM) and Git
152175

153176
---
154177

155178

156179
# Source Control Management(SCM)
157180

158-
- Refers to tools used to track modifications to a source code repository.​
181+
- Refers to **tools used to track modifications** to a source code repository.​
159182

160-
- Source Control Management = Version Control​
183+
- **Source Control Management = Version Control​**
161184

162185
---
163186

164187
# Why do we use Source Control?
165188

166-
- Helps teams work collaboratively.
189+
- Helps teams work **collaboratively.**
167190

168-
- Developers can edit shared code without unknowingly overwriting each other’s work.
191+
- Developers can edit shared code **without unknowingly overwriting each other’s work**.
169192

170-
- Serves as a protection mechanism.
193+
- Serves as a **protection mechanism.**
171194

172195

173196
---
174197

175198
# Git
176199

177-
- Git (Global Information Tracker) = a version control system.​
200+
- **Git (Global Information Tracker) = a version control system.​**
178201

179-
- Why Git? ​-> Because of its popularity, community, opensource nature, and decentralised approach.
202+
- **Why Git?** - Because of its popularity, community, opensource nature, and decentralised approach.
180203

181204
---
182205

183206
# Git - What does it do?
184207

185-
- Allows you to *collaborate* on a project without interfering with each other’s work.​
208+
- Allows you to **collaborate** on a project w**ithout interfering with each other’s work.​**
186209

187-
- Keeps a historical record of everyone's work so you can go back to previous records.​
210+
- Keeps a **historical record of everyone's work** so you can go back to previous records.​
188211

189-
- You can work on your local copy of the codebase and then merge your changes with the main codebase.​
212+
- You can work on your **local copy of the codebase** and then **merge your changes with the main codebase.​**
190213

191-
- Uses a series of snapshots, called commits, to track changes to the codebase over time along with the timestamp and user who made the changes.
214+
- Uses a **series of snapshots**, called **commits**, to **track changes** to the codebase over time, along with the timestamp and user who made the changes.
192215

193216
---
194217

@@ -208,13 +231,15 @@ clear # Clears the terminal screen
208231
# Basic Git commmands
209232

210233
```bash
211-
git clone <https://github.com/sergiuHudrea/intro-to-python.git> # Copies an existing Git repository from a remote location to your local machine.​
234+
git clone <https://github.com/sergiuHudrea/intro-to-python.git>
235+
# Copies an existing Git repository from a remote location to your local machine.​
212236

213237

214238
git init # Initializes an existing directory as a Git repository.
215239

216240

217-
git status # Shows the current status of the repository, including which files have been modified, which files have been added to the staging area, and which files are not being tracked by Git.
241+
git status # Shows the current status of the repository, including which files have been modified,
242+
# which files have been added to the staging area, and which files are not being tracked by Git.
218243
```
219244

220245
---
@@ -225,11 +250,13 @@ git status # Shows the current status of the repository, including which files
225250

226251
git add . # Adds ALL changes to the staging area in preparation for committing them to the repository.​
227252

228-
git commit -m "<Short description of what you have worked on.>" # Saves changes to the local repository, along with your commit message, usually describing the changes.
253+
git commit -m "<Short description of what you have worked on.>"
254+
# Saves changes to the local repository, along with your commit message, usually describing the changes.
229255

230256
git push origin main # Uploads local changes to your remote repository, on the main branch.
231257

232-
git pull origin main # Downloads changes from the remote repository (main branch) and incorporates them into your local repository.
258+
git pull origin main # Downloads changes from the remote repository (main branch)
259+
# and incorporates them into your local repository.
233260

234261
```
235262

@@ -243,23 +270,21 @@ git pull origin main # Downloads changes from the remote repository (main branc
243270

244271
- When creating a repository, you usually start off by writing a **README.md** file in a Markup language called Markdown.​
245272

246-
- The **README.md** summarises important information about the contents of the repo, instructions on how to edit or run the software, etc.​
247-
248-
- *Markdown* is a lightweight markup language for creating formatted text using a plain-text editor.
273+
- The **README.md** **summaris F71C es important information** about the contents of the repo, **instructions** on how to edit or run the software, etc.​
249274

275+
- ***Markdown* is a lightweight markup language for creating formatted text using a plain-text editor.**
250276

251277
---
252278

253279
# IDEs
254280

255-
- **IDE** = An Integrated development environment is a software for application building. It combines tools into a single graphical user interface (GUI).​
281+
- **IDE** = An **Integrated development environment** is a software for application building. It combines tools into a single graphical user interface (GUI).​
256282

257-
- Why use an IDE? ​--> The tools needed are already there and ready to use. It is efficient and makes life easier.​
283+
- **Why use an IDE?** - The tools needed are already there and ready to use. It is efficient and makes life easier.​
258284

259285
- Imagine repairing a car in a parking lot VS repairing it in a garage.​
260286

261-
- You can develop applications without an IDE, but the you would have to build your own IDE by manually integrating the tools you need.​
287+
- **You can develop applications without an IDE**, but the you would have to build your own IDE by manually integrating the tools you need.​
262288

263-
- Replit = a cloud IDE --> No need for downloading software and configuring local environments. No more "But it works on my machine".
289+
- **Replit** = a **cloud IDE** --> No need for downloading software and configuring local environments. No more "But it works on my machine".
264290

265-
---

session_01/exercises_1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# 1. Write code that prints ‘Hello world’.
88

99

10+
1011
# 2. Print the numbers 1 to 5 on a single line.
1112

1213

0 commit comments

Comments
 (0)
0