Skip to content

Commit ffbef61

Browse files
committed
Changed admonitions from "note" to "info"
1 parent 7f7db65 commit ffbef61

3 files changed

Lines changed: 10 additions & 16 deletions

File tree

curriculum/01-foundations/01.01-output-variable-datatypes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ See [PEP8 - Style Guide for Python Code](https://peps.python.org/pep-0008/) to l
5555
## Python Core Data Types
5656
Python has 4 core data types with addition of `None` which is a special value representing **no value**.
5757

58-
:::note
58+
:::info
5959

6060
Python has a special `type()` function which returns what type some data is. We will use this to inspect the following data types.
6161

@@ -147,7 +147,7 @@ print("b=", b, "type=", type(b))
147147
print("c=", c, "type=", type(c))
148148
```
149149

150-
:::note
150+
:::info
151151

152152
If Python cannot convert one type to another, it will raise **ValueError**. This usually happens when you try to convert some *text* into *number* or *float*.
153153

curriculum/01-foundations/01.02-math-stringops-comparisons.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: math-strops-and-comparisons
33
title: Math, String Operations and Comparisons
4-
sidebar_label: 01.02 - Math, String Operations and Comparisons
4+
sidebar_label: 02 - Math, String Operations and Comparisons
55
sidebar_position: 2
66
lesson: true
77
---
@@ -54,7 +54,7 @@ b = 2
5454
print(a / b)
5555
```
5656

57-
:::note
57+
:::info
5858

5959
Division **always** returns `float`
6060

@@ -121,7 +121,7 @@ print(a[1]) # Second letter at index 1
121121
print(a[-1]) # Last letter at index -1
122122
```
123123

124-
:::note
124+
:::info
125125

126126
Python always starts counting at 0. This is called an **index**.
127127

curriculum/01-foundations/01.03-userinput-conditionals.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
---
22
id: input-and-conditionals
33
title: User Input and Conditionals
4-
sidebar_label: 01.03 - User Input and Conditionals
4+
sidebar_label: 3. User Input and Conditionals
55
sidebar_position: 3
66
lesson: true
77
---
88

9-
:::danger[Lesson still in development]
10-
11-
This lesson is still under constructions. We will update shotly.
12-
13-
:::
14-
159
# User Input and Conditionals
1610
In the last lesson we learned how to compare values. In this lesson we will expand that knowledge and learn how to influence programs decision to do something depending on conditions. We will also cover how to get input from the user.
1711

@@ -44,7 +38,7 @@ else:
4438
```
4539
In this basic example, our program will execute its task depending on **conditions**. In the current example, we ask Python to compare value in variable `a` to **int** 5. If they are equal, program executes one branch and if its not, program executes another branch.
4640

47-
:::note
41+
:::info
4842

4943
Unlike other programming languages that use *curly braces* to mark blocks of code, in Python we use **indentation**.
5044
This is extremely important to learn as Python will raise **IndentationError** if you do it wrong.
@@ -74,9 +68,9 @@ name = "Bob"
7468
is_verified = True
7569

7670
if age > 15 and is_verified:
77-
print(f"{name} is allowed to enter.")
71+
print(f"{name} is allowed to enter.)
7872
elif age > 15 and not is_verified:
79-
print(f"{name} has correct age but not verified")
73+
print(f"{name} has correct age but not verified)
8074
elif age <= 15:
8175
print(f"{name} is not 15 years old")
8276
```
@@ -101,6 +95,6 @@ Use **modulo** operator to determine the remainder of division with 2. If remain
10195

10296
:::
10397

104-
## Deepen Your Knowlege
98+
## Deepen Your Knowledge
10599

106100
## What's Next

0 commit comments

Comments
 (0)