understandable
The Python language is an interpreted language, unlike
computer binary language. The first video explains how
to use print statements in Python. The code includes
basic arithmetic operations such as addition,
multiplication, and division. The range function is also
used to iterate through a sequence of numbers.
Arithmetic Operations
Addition: a + c = 2
Multiplication: 5 x 2 = 10
Division: important to note
Range Function
The range function is used to iterate through a
sequence of numbers. Example:
First row: 1, 2, 3
Second row: 4, 5
Third row: 6, 7, 8, 9
Substring Function
The substring function in Python splits a string into
substrings based on a given delimiter. Example:
"ethernet.foreign.of.str" is the main string
"foreign" is the substring
Add Function
The add function in Python can be used to add two
numbers together. If no value is returned, it is
considered a void function and returns "None".
Example of Add Function:
add(a,b) = a + b