We are thrilled to inform you that Lancecourse is NOW INIT Academy — this aligns our name with our next goals — Read more.

It seems like you are using an ad blocker. To enhance your experience and support our website, please consider:

  1. Signing in to disable ads on our site.
  2. Sign up if you don't have an account yet.
  3. Or, disable your ad blocker by doing this:
    • Click on the ad blocker icon in your browser's toolbar.
    • Select "Pause on this site" or a similar option for INITAcademy.org.

Python Basics

This course will introduce you to the Python language and interpreter. It covers core programming principles using Python. By the end of this course, you won’t just know Python—you’ll understand programming in general

No. Authors 1
Level Medium
Type Community
Last Updated Feb 26, 2025
Python Basics
  • 3hrs

    Duration
  • 9

    Chapters
  • 1

    Quizzes
Start Course

Welcome to the Python Basics course! Python is one of the leading programming languages today. It plays a pioneering role in the development of Artificial Intelligence (AI), particularly in the field of Machine Learning. Learning Python not only enhances your chances of a successful career as a developer but also equips you with the right tools to bring your innovative ideas to life.

This course will introduce you to the Python language and interpreter. It covers core programming principles using Python. By the end of this course, you won’t just know Python—you’ll understand programming in general. The lessons include exercises and end-of-chapter quizzes to provide hands-on experience. By the time you complete the course, you'll be capable of building real-life applications and ready for employment. What is Python?

When we talk about "Python," we usually refer to the programming language. However, the software that translates Python code into machine-executable instructions is also called "Python"—more precisely, the Python interpreter. That’s why we always need to install Python when learning it.

So, we have a programming language called Python, which we use to write code. That code is then interpreted into machine language by an interpreter, also called "Python." When we "install Python," we are actually installing the interpreter, not the language itself. Installing the Python Interpreter

Installing Python is generally an easy task. Most operating systems, including Windows, Linux, and macOS, may come with Python 2 pre-installed. However, in this course, we will be using Python 3.

To install Python 3, follow these steps:

  1. Visit the official Python download page: https://www.python.org/downloads.

  2. Download the latest version of Python 3 (e.g., "python-3.13.2-amd64.exe" or a similar file).

  3. Locate the downloaded file in your Downloads folder and double-click it to launch the installer.

  4. Follow the installation instructions, clicking "Next" at each step.

  5. Once the installation is complete, press the Windows key or Start button and search for "Python."

  6. You should see two or three items labeled "Python" along with other descriptions. Select the one simply named "Python" or "Python (command line)."

  7. This will launch a command-line interface with the Python interpreter ready to accept your commands.

  8. Alternatively, you can open a command-line tool such as "Windows Command Prompt" or "Windows PowerShell" and start the Python interpreter by typing:

python

Now you're ready to start coding in Python!

Course Curriculum

1 - Preamble

  1. Introduction to Python

  2. Why Learn Python?

  3. What to Expect in This Course

  4. Python Development Routine

  5. Your First Python Program

  6. Python Is Weird

2 - Python Syntax

  1. Variables

  2. The `print()` Function

  3. Getting to Know Your Data

  4. Arithmetic Operations

  5. Augmented Assignment Operators

  6. Errors and try-except

  7. Data Types

  8. Converting Data Types

  9. Conclusion

3 - Strings

  1. Introduction

  2. Strings in Python

  3. Indices

  4. Slices

  5. Operations with Strings

  6. String Methods

  7. F-strings

  8. Conclusion 2

Lists

  1. Introduction to Lists in Python

  2. Lists Basics

  3. Indices and Slices

  4. Adding and Removing Elements in Lists

  5. Sorting

  6. Searching for Elements

  7. Lists and Strings

  8. Conclusion 3

for Loops

  1. Intro to for Loops in Python

  2. Loops

  3. The range() Function

  4. Processing Lists

  5. Conclusion - Loops

Nested Lists

  1. Introduction to Nested Lists

  2. Lists of Lists

  3. Looping Over Nested Lists

  4. for Loops in Nested Lists

  5. Adding a Column to a Table

  6. Conclusion: Working with Nested Lists

Conditions and while Loops

  1. Introduction to Conditions and `while` Loops

  2. Logical Expressions and Comparison Operators

  3. Conditions with if and else

  4. Creating Multiple Branches with elif

  5. Filtering Tables

  6. Compound Logical Expressions

  7. Counters

  8. Conclusion: Mastering Conditions and while Loops

Creating functions

  1. Introduction to Python functions

  2. Intro to Functions

  3. Using Functions to Simplify Code

  4. Combining Lists and Functions

  5. Parameters and Default Values

  6. Return Values in Functions

  7. Combining Everything: Functions, Conditions, and Loops

  8. Positional and Keyword Arguments

  9. Conclusion: Creating Functions

Dictionaries

  1. Introduction to Dictionaries in Python

  2. Finding and Adding Items in Dictionaries

  3. Dictionaries and Lists

  4. Lists of Dictionaries

  5. Conclusion

Authors