Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 01.Introduction-to-programming.md #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions 01.Introduction-to-programming.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Programming is the process of creating a set of instructions that tell a compute

### 1.1 What can you do with programming?

Talking of all opportunities which are opened to you after learning how programming works , you will be able to do the following things:
Talking of all opportunities that are opened to you after learning how programming works, you will be able to do the following things:

1. **Solve Problems**: Programming can be used to model and solve complex problems in fields like `finance`, `engineering`, and `medicine`.

Expand All @@ -35,7 +35,7 @@ Talking of all opportunities which are opened to you after learning how programm

## 2. Overview of Python

Choosing `Python` as your first language opens a world where coding is not just accessible, but also very enjoyable and rewarding.
Choosing `Python` as your first language opens a world where coding is not just accessible but also very enjoyable and rewarding.

| Aspect | Details |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
Expand Down Expand Up @@ -208,7 +208,7 @@ Naah, I am too lazy to work, let's go to pub!
The `print()` function in `Python` has optional arguments `sep` and `end` which offer _more control_ over the formatting of the output.


| Argument | Purporse |
| Argument | Purpose |
| -------- | ------- |
| sep | Specifies the separator _between_ the values. By default, it is a `space`. |
| end | Specifies what to print at the `end`. By default, it is a newline character `(\n)`.|
Expand Down Expand Up @@ -281,14 +281,14 @@ In `Python`, declaring variables is pretty straightforward, you just need to as
```python
print("Hello, what is your name?")

# At this stage the programm is awaiting the input from user which we store in the variable called ``name`` and we can use it later
# At this stage the program is awaiting the input from user which we store in the variable called ``name`` and we can use it later
name = input()
print('Hello,', name, "it is nice to see you!")
```

#### Explanation

In the example above we can see that the programm is executed line by line, because `Python` is an interpretted language and it is very important to understand, that before executing the line `Hello <name>, it is nice to see you!` it freezes, until the user is prompted to input their `name`
In the example above we can see that the program is executed line by line, because `Python` is an interpreted language and it is very important to understand, that before executing the line `Hello <name>, it is nice to see you!` it freezes, until the user is prompted to input their `name`


#### Output
Expand Down Expand Up @@ -324,7 +324,7 @@ Output:

#### Assignment 2: Order Summary

**Objective:** Create a program that asks for the user's adress, the item they are purchasing, and the cost. Then, print a summary of their order.
**Objective:** Create a program that asks for the user's address, the item they are purchasing, and the cost. Then, print a summary of their order.

```
Input:
Expand Down Expand Up @@ -447,7 +447,7 @@ Barcelona is a champion!

### Task 5: Repeat after me

**Objective**: Create a Python program that captures three lines of text, one at a time, and then prints them out in reverse order.
**Objective**: Create a Python program that captures three lines of text, one at a time, and then prints them out in the same order.


```python
Expand Down