Free Course Image Python

Free online coursePython

Duration of the online course: 5 hours and 20 minutes

4.66

StarStarStarStarHalf star

(50)

Build real Python skills fast with a free online course: write code, automate tasks, understand logic, files, and functions, and earn a certificate.

In this free course, learn about

  • Set up a Python environment, choose a Python version, and use a text editor effectively
  • Write and run simple Python scripts; understand basic syntax and program structure
  • Use comments and understand their role in code readability and maintenance
  • Work with numbers, arithmetic operators, and modulo (%)
  • Create and use variables; understand assignment (=) and naming conventions
  • Print output using strings, repetition ('*'), and formatting (%s, %r)
  • Use escape sequences and backslashes in strings (e.g., \n) for special characters
  • Get user input and prompts; understand print behavior with commas (legacy Python 2)
  • Use command-line arguments (argv) and basic module imports for scripts
  • Read, write, copy files; use file modes and check existence with os.path.exists
  • Define and call functions; use parameters, scope basics, and return values
  • Practice debugging by finding common errors and reading other people's code
  • Understand Boolean values and logic (and/or/not) and how expressions evaluate
  • Control flow with if/elif/else; make decisions in simple text-based games

Course Description

Start coding with confidence and turn Python into a practical skill you can use right away. This free online course is designed for beginners who want clear guidance and steady progress, while still being useful for anyone returning to programming and needing a structured refresh. You will learn how to set up your environment, choose the right tools, and begin writing programs that actually run, not just examples you copy and forget.

Along the way, you build a strong foundation in the core ideas that make Python readable and powerful: variables, data types, strings, printing, and basic math. Instead of treating these as abstract concepts, the course connects them to real coding habits, like writing clean output, using comments for clarity, and understanding how formatting works when you display information. You will also get comfortable reading errors and fixing common issues, an essential step toward becoming independent as a developer.

As you advance, the course shifts from single lines of code to programs that interact with people and with your computer. You practice taking user input, using command-line arguments, and working with files: opening, reading, writing, and managing data safely. You also learn to organize your work with functions, including how to pass values, return results, and reuse logic to keep programs simple and maintainable.

Decision-making and automation come next. You strengthen your understanding of boolean logic, conditions, and control flow, then apply that knowledge to build programs that respond to different situations. Loops and lists help you handle repeated tasks and collections of information, skills that show up in everything from data processing to scripting. By the end, you will not only know Python syntax, you will understand how to think through problems, structure solutions, and keep improving through practice, giving you a solid step toward new projects, technical roles, or further study in programming.

Course content

  • Video class: Learn Python the Hard Way - Welcome 01m
  • Exercise: _What is the difference between the free version and the paid version of Learn Python the Hard Way?
  • Video class: Learn Python the Hard Way - Ex 00 - The Setup 15m
  • Exercise: What is the preferred Python version for 'Learn Python the Hard Way'?
  • Video class: Learn Python the Hard Way - Ex 01 - A Good First Program 11m
  • Exercise: What is the purpose of using a text editor when programming in Python?
  • Video class: Learn Python the Hard Way - Ex 02 - Comments and Pound Characters 07m
  • Exercise: What is the purpose of comments in Python programs?
  • Video class: Learn Python the Hard Way - Ex 03 - Numbers and Math 10m
  • Exercise: _What is the meaning of the % symbol in programming?
  • Video class: Learn Python the Hard Way - Ex 04 - Variables and Names 08m
  • Exercise: What does the assignment operator in Python do?
  • Video class: Learn Python the Hard Way - Ex 05 - More Variables and Printing 08m
  • Video class: Learn Python the Hard Way - Ex 06 - Strings and Text 10m
  • Exercise: What represents a boolean variable in Python?
  • Video class: Learn Python the Hard Way - Ex 07 - More Printing 05m
  • Exercise: _What is the purpose of the asterisk (*) in the line "print('.' * 10) "?
  • Video class: Learn Python the Hard Way - Ex 08 - Printing, Printing 05m
  • Exercise: What is the purpose of using '%r' in the 'formatter' variable in Python?
  • Video class: Learn Python the Hard Way - Ex 09 - Printing, Printing, Printing 05m
  • Exercise: _What is the purpose of the backslash symbol in the code?
  • Video class: Learn Python the Hard Way - Ex 10 - What Was That? 06m
  • Exercise: What does the escape sequence '\n' do in Python strings?
  • Video class: Learn Python the Hard Way - Ex 11 - Asking Questions 06m
  • Exercise: What is the purpose of using a comma after the print statement in Python?
  • Video class: Learn Python the Hard Way - Ex 12 - Prompting People 05m
  • Exercise: What is the purpose of exercise 12 in the series 'Learn Python the Hard Way'?
  • Video class: Learn Python the Hard Way - Ex 13 - Parameters, Unpacking, Variables 05m
  • Exercise: _What is the purpose of the statement "from sis import ArgV" in the code mentioned by Barton Poulson?
  • Video class: Learn Python the Hard Way - Ex 14 - Prompting and Passing 08m
  • Exercise: What does the %s operator do in Python string formatting?
  • Video class: Learn Python the Hard Way - Ex 15 - Reading Files 08m
  • Exercise: How does the Python script read and display a text file in 'Learn Python the Hard Way' Exercise 15?
  • Video class: Learn Python the Hard Way - Ex 16 - Reading and Writing Files 12m
  • Exercise: What command creates a new file if it doesn't exist while writing?
  • Video class: Learn Python the Hard Way - Ex 17 - More Files 12m
  • Exercise: _What is the purpose of the "exists" function from the "OS" library that is imported in the script?
  • Video class: Learn Python the Hard Way - Ex 18 - Names, Variables, Code, Functions 08m
  • Exercise: What is the correct way to define a function in Python?
  • Video class: Learn Python the Hard Way - Ex 19 - Functions and Variables 05m
  • Exercise: _What is the purpose of the function defined in Exercise 19 of "Learn Python the Hard Way" by Zee Shah?
  • Video class: Learn Python the Hard Way - Ex 20 - Functions and Files 09m
  • Exercise: What is the purpose of the 'rewind' function in the described Python exercise?
  • Video class: Learn Python the Hard Way - Ex 21 - Functions Can Return Something 08m
  • Exercise: _What is the purpose of the "return" function in Python?
  • Video class: Learn Python the Hard Way - Ex 22 - What Do You Know So Far? 06m
  • Exercise: What is the purpose of Exercise 22 in 'Learn Python the Hard Way'?
  • Video class: Learn Python the Hard Way - Ex 23 - Read Some Code 07m
  • Exercise: What is the main objective of Exercise 23 from the online book 'Learn Python the Hard Way'?
  • Video class: Learn Python the Hard Way - Ex 24 - More Practice 13m
  • Exercise: What is the escape character used for in Python strings?
  • Video class: Learn Python the Hard Way - Ex 25 - Even More Practice 18m
  • Exercise: _What is the purpose of the "break_words" function in Exercise 25?
  • Video class: Learn Python the Hard Way - Ex 26 - Congratulations, Take a Test! 08m
  • Exercise: What common Python error was found in the code described?
  • Video class: Learn Python the Hard Way - Ex 27 - Memorizing Logic 05m
  • Exercise: _What is the result of a logical test if both conditions in an "and" statement are false?
  • Video class: Learn Python the Hard Way - Ex 28 - Boolean Practice 11m
  • Exercise: Understanding Boolean Logic in Python: True or False Evaluations
  • Video class: Learn Python the Hard Way - Ex 29 - What If 05m
  • Exercise: What are the correct output lines from the given Python script using if statements?
  • Video class: Learn Python the Hard Way - Ex 30 - Else and If 05m
  • Exercise: What will be printed based on the given conditions?
  • Video class: Learn Python the Hard Way - Ex 31 - Making Decisions 09m
  • Exercise: What action allows you to survive in the text-based adventure game in the exercise?
  • Video class: Learn Python the Hard Way - Ex 32 - Loops and Lists 11m
  • Exercise: What is the primary purpose of using loops and lists in Python programming as highlighted in the video?
  • Video class: Learn Python the Hard Way - Ex 33 - While Loops 11m
  • Exercise: _What is the keyword used to define a while loop in Python?
  • Video class: Learn Python the Hard Way - Ex 34 - Accessing Elements of Lists 07m
  • Exercise: What is the zero-based index of the animal 'peacock' in the list?
  • Video class: Learn Python the Hard Way - Ex 35 - Branches and Functions 10m
  • Exercise: _What is the purpose of the "from sis import exit" line in the code?

This free course includes:

5 hours and 20 minutes of online video course

Digital certificate of course completion (Free)

Exercises to train your knowledge

100% free, from content to certificate

Ready to get started?Download the app and get started today.

Install the app now

to access the course
Icon representing technology and business courses

Over 5,000 free courses

Programming, English, Digital Marketing and much more! Learn whatever you want, for free.

Calendar icon with target representing study planning

Study plan with AI

Our app's Artificial Intelligence can create a study schedule for the course you choose.

Professional icon representing career and business

From zero to professional success

Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.

You can also use the QR Code or the links below.

QR Code - Download Cursa - Online Courses

Course comments: Python

PG

precious Gugu Mabaso

StarStar

I don't understand

MA

Mmadiphisho Adelaide

I don't understand to write the exercises

YM

yogita mishra

StarStarStarStar

nice

More free courses at Programming Languages ( Python, Ruby, Java, C )

Free Ebook + Audiobooks! Learn by listening or reading!

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate