Summary
Highlights
Overview of Python's capabilities, suited for machine learning, web dev and automation. Downloading and installing Python and PyCharm.
Creating a new project, understanding project structure, writing and running the classic 'Hello, World!' program including explanations of the print function and strings.
Declaring and using variables to store data, different data types (numbers, strings, booleans) and variable assignment.
Using the `input()` function to read user input from the terminal and storing it in variables. Demonstrates string concatenation.
Converting data types using built-in functions like `int()`, `float()`, `bool()`, and `str()` to avoid errors and perform calculations.
String methods such as upper(), lower(), find(), replace(), and the 'in' operator for searching strings.
Explanation of arithmetic operators (+, -, *, /, %, **) and augmented assignment operators (+=, -=, *=, etc.).
Using comparison operators (>, <, ==, !=, >=, <=) and logical operators (and, or, not) to build boolean expressions.
Using if, elif, and else statements to execute code based on conditions. Code indentation is mandatory for each block.
Create a script that converts weight from pounds to kilos and vice-versa, taking user input for the numbers and type.
Using while loops to repeat a block of code until a condition is false. Example shows printing number sequences using `while` loops.
Creating, accessing, and modifying lists. Includes indexing, slicing, and list methods like append, insert, remove and clear.
Iterating over lists using for loops and comparing the ease of use with while loops for iteration.
Generating sequences of numbers using the range function, showing how to specify start, end, and step values.
Defining and using tuples, highlighting their immutability. They cannot be changed after created like lists.