Skip to content

Commit 1309cfd

Browse files
authored
Merge pull request #154 from braboj/codex/fix-separator-between-heading-and-body
Fix example separators length
2 parents 1b9fc23 + 24fc037 commit 1309cfd

File tree

132 files changed

+132
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+132
-132
lines changed

examples/A01_introduction/01_hello_world.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Hello World
2-
# --------------------------------------------------------------------------------
2+
# ------------------------------------------------------------------------------
33
# This simple program prints "Hello world!" and performs a basic
44
# addition (1 + 1) to highlight Python's core syntax.
55

examples/A01_introduction/02_print_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use the print() function to output text to the console.
2-
# --------------------------------------------------------------------------------
2+
# ------------------------------------------------------------------------------
33
# The print() function is used to output data to the screen. It can take
44
# multiple arguments and will convert them to strings before printing them.
55

examples/A01_introduction/03_statements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use statements to perform actions in Python.
2-
# --------------------------------------------------------------------------------
2+
# ------------------------------------------------------------------------------
33
# A statement is a piece of code that performs an action. It can be as simple
44
# as a single line or a more complex block of code. The following is true
55
# for all statements:

examples/A01_introduction/04_expressions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use expressions to evaluate values in Python.
2-
# --------------------------------------------------------------------------------
2+
# ------------------------------------------------------------------------------
33
# An expression is anything that evaluates to a value. The following is true
44
# for all expressions:
55
#

examples/A01_introduction/05_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use import to access Python code from other files.
2-
# --------------------------------------------------------------------------------
2+
# ------------------------------------------------------------------------------
33
# A module is a file containing Python code. It can define functions,
44
# classes, and variables that you can use in your code. You can import a
55
# module using the `import` statement.

examples/A01_introduction/06_zen_of_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Import the `this` module to print the Zen of Python
2-
# --------------------------------------------------------------------------------
2+
# ------------------------------------------------------------------------------
33
# This is a fun Easter egg in Python that prints the Zen of Python, the
44
# guiding principles for writing computer programs in Python. It emphasizes
55
# simplicity, readability, and the importance of explicitness in code design.

examples/A02_variables/01_problem_without_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Problem without variables
2-
# --------------------------------------------------------------------------------
2+
# ------------------------------------------------------------------------------
33
# This example explains why variables are useful. Without them we would
44
# repeat the same value throughout the code and update each occurrence
55
# manually. Imagine printing "Hello world" 1000 times and later wanting

examples/A02_variables/02_solution_with_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Solution: Variables as containers for data
2-
# --------------------------------------------------------------------------------
2+
# ------------------------------------------------------------------------------
33
# This code uses a variable as a container for data. The variable `text`
44
# stores a string value that can be reused multiple times, illustrating how
55
# variables allow you to store and manipulate data efficiently.

examples/A02_variables/03_integer_numbers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Integer numbers
2-
# --------------------------------------------------------------------------------
2+
# ------------------------------------------------------------------------------
33
# The integer type in Python is used to represent whole numbers, both
44
# positive and negative. Python supports various bases for integers,
55
# including decimal, binary, octal, and hexadecimal.

examples/A02_variables/04_real_numbers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Real numbers
2-
# --------------------------------------------------------------------------------
2+
# ------------------------------------------------------------------------------
33
# Floating point numbers are used to represent real numbers and can be defined
44
# in standard decimal format or scientific notation. Python's `float` type is
55
# based on the IEEE 754 double-precision floating-point format, which provides

0 commit comments

Comments
 (0)