Skip to content

Commit 71ebf9f

Browse files
committed
test deployment
1 parent 59ee826 commit 71ebf9f

17 files changed

+21
-44
lines changed

webpage/docs/python-guide/01_Python_Basics/01_Syntax.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Syntax
22

3-
## Understanding Python Syntax
4-
53
Think of Python syntax as the punctuation of the programming world. Just as improper punctuation can lead to misunderstandings in human language, incorrect syntax in Python can cause miscommunication and errors.
64

7-
### Example: Printing a Friendly Message
5+
## Example: Printing a Friendly Message
86

97
Let's start with a simple example - printing a friendly message to the console:
108

@@ -15,7 +13,7 @@ print("Hello, Bob")
1513

1614
This code snippet will execute successfully, and you'll see the output: `Hello, Bob`.
1715

18-
### Dealing with Syntax Errors
16+
## Dealing with Syntax Errors
1917

2018
Now, let's intentionally introduce a syntax error by removing one parenthesis:
2119

@@ -26,7 +24,7 @@ print("Hello, Bob"
2624

2725
Your code editor will likely raise an error, indicating a missing parenthesis. If you attempt to run this code, a syntax error will occur. Always ensure that you respect the syntax rules.
2826

29-
### Handling Quotation Marks
27+
## Handling Quotation Marks
3028

3129
Quotation marks are essential in Python to define strings. Make sure to start and end them correctly:
3230

@@ -37,7 +35,7 @@ print("Hello, Bob)
3735

3836
Here, Python will raise a syntax error, signaling that you haven't respected the rules. Always close the quotes properly to avoid such errors.
3937

40-
### Case Sensitivity in Python
38+
## Case Sensitivity in Python
4139

4240
Python is case-sensitive. For instance, the `print` function must be written in lowercase:
4341

webpage/docs/python-guide/01_Python_Basics/02_Comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clean Code and Commenting Practices
1+
# Commenting
22

33
In this guide, we'll explore the use of comments in Python code and the importance of maintaining clean and readable code. While it's crucial to write code that is self-explanatory, comments can be valuable for adding context or reminders.
44

webpage/docs/python-guide/01_Python_Basics/04_Constants.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
In Python, constants are not explicitly defined, but we rely on a naming convention to indicate that a variable should be treated as a constant, meaning its value should not be changed throughout the program. Typically, constant variable names are written in uppercase characters.
44

5-
## Examples
6-
7-
### Example 1: Pi as a Constant
5+
## Example 1: Pi as a Constant
86

97
```python
108
# Define pi as a constant
@@ -18,7 +16,7 @@ area = PI * radius**2
1816
print(f"The area of a circle with radius {radius} is: {area}")
1917
```
2018

21-
### Example 2: Version Number as a Constant
19+
## Example 2: Version Number as a Constant
2220

2321
```python
2422
# Define the version number as a constant

webpage/docs/python-guide/01_Python_Basics/07_Shortcut_Format.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Shortcut
22

3-
Have you ever found yourself typing Python code in a hurry, only to realize later that it looks messy and lacks proper formatting? Well, fear not! This README introduces a handy shortcut to quickly format your code and make it more readable.
4-
53
## The Problem
64

75
Consider the following poorly formatted Python code snippet:

webpage/docs/python-guide/01_Python_Basics/08_Integers.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
# Integer Data Type
22

3-
In this repository, we'll explore Python data types in more detail, focusing on the integer data type. Each data type will be explained thoroughly with code snippets and examples.
4-
5-
## Definition
6-
73
An integer in Python represents any whole number. It can be positive, negative, or zero.
84

9-
### Examples
5+
## Examples
106

117
```python
128
# Creating integers

webpage/docs/python-guide/01_Python_Basics/09_Floats.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11

22
# Floats
33

4-
In this lesson, we will explore the use of decimal numbers, or floats, in Python. Floats are used to represent numbers with decimal points.
5-
6-
## Examples
7-
8-
### Defining Float Constants
4+
## Defining Float Constants
95

106
```python
117
# Example: Defining pi as a float
@@ -15,14 +11,14 @@ pi: float = 3.1415
1511
percent: float = 0.50
1612
```
1713

18-
### Representing Height in Meters
14+
## Representing Height in Meters
1915

2016
```python
2117
# Example: Defining height in meters as a float
2218
height_in_meters: float = 1.72
2319
```
2420

25-
### Performing Mathematical Operations
21+
## Performing Mathematical Operations
2622

2723
```python
2824
# Example: Performing mathematical operations with floats
@@ -42,7 +38,7 @@ result_multiplication = a * b # Output: 0.75
4238
result_division = a / b # Output: 0.3333333333333333 (approximately 1/3)
4339
```
4440

45-
### Type Annotations with Floats
41+
## Type Annotations with Floats
4642

4743
```python
4844
# Example: Type annotations with floats and integers
@@ -55,4 +51,7 @@ float_value: float = 10 # Integer can be assigned to a float
5551
float_from_int: float = 1.0 # This is compatible
5652
```
5753

58-
**Important Note:** While integers can easily be converted to floats, attempting to assign a float to an integer without explicit conversion will result in a warning. Python cannot easily convert a float to an integer without rounding. Even if the float appears as a whole number, like 1.0, it remains incompatible with integers.
54+
**Important Note:**
55+
- While integers can easily be converted to floats, attempting to assign a float to an integer without explicit conversion will result in a warning.
56+
- Python cannot easily convert a float to an integer without rounding.
57+
- Even if the float appears as a whole number, like 1.0, it remains incompatible with integers.

webpage/docs/python-guide/01_Python_Basics/10_Operators.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Numeric Operations
22

3-
In this example, we'll explore the various arithmetic operators available in Python for numeric data types. We'll cover basic arithmetic operators, floor division, exponentiation, modulus, and introduce assignment operators for efficient coding.
4-
53
## Arithmetic Operators
64

75
```python
@@ -68,11 +66,7 @@ x %= 3 # Output: 0 (modulus)
6866

6967
Feel free to experiment with these examples to deepen your understanding of Python's numeric operations. If you have any questions or need further clarification, refer to the comments and explanations provided in the code snippets. Happy coding!
7068

71-
# Comparison Operators in Python
72-
73-
This README.md file provides an overview of comparison operators in Python and includes code snippets with examples to illustrate their usage.
74-
75-
## Introduction
69+
# Comparison Operators
7670

7771
Comparison operators in Python are used to compare values and return a boolean based on the result of the comparison. This can be useful for making decisions in your code based on the relationships between different variables.
7872

webpage/docs/python-guide/01_Python_Basics/19_Dictionaries.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Dictionary
32

43
In Python, dictionaries provide a convenient way to store data using a key-value pair structure. This part introduces you to the basics of dictionaries and includes code snippets with examples.

webpage/docs/python-guide/01_Python_Basics/20_None.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# None Type in Python
1+
# None Type
22

33
The `None` type in Python is a special data type used to represent the absence of a value or the concept of nothing. It is often returned by certain functions to indicate that no meaningful value is available.
44

webpage/docs/python-guide/01_Python_Basics/22_Truthy_and_Falsy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Truthy and Falsy Values in Python
1+
# Truthy and Falsy Values
22

33
In Python, every object can be categorized as either truthy or falsy. While the most explicit examples are the `True` and `False` booleans, it's important to note that these booleans are essentially constants representing 1 and 0, respectively. You can use any non-zero number as truthy and zero as falsy. For instance, using 1 instead of `True` and 0 instead of `False` is completely valid.
44

0 commit comments

Comments
 (0)