Python Basics. Part 1 (LearnPython)

Offered by LearnPython.com,
Python Basics. Part 1 (LearnPython)

This course is a solid foundation in programming for beginners. Upon completion, you will be able to deepen your knowledge of Python or switch to any other programming language. There are 95 interactive exercises with examples and hints. After completing them, you’ll be able to use the syntax of Python and write your own functions. You’ll also discover what variables are, their purpose, and how to use them in programs. With an understanding of basic data structures, you’ll be ready to work with files and go further with programming for data analysis, development, or engineering.

What makes Python so popular is its simplicity. In Python, you can write much less code than in other languages such as Java or C#. In short, coding in Python is quick and efficient. There are also nearly 150,000 third-party Python libraries that you can use for all kinds of purposes. Python was one of the primary back-end languages used to create popular apps like YouTube, Instagram, and Spotify. It's also used extensively by leading software companies like Intel, Google, and Amazon.
Our Python Basics series comprises three parts and covers all the entry-level concepts that you need to start writing your own applications. In this Python Basics Part 1 course, you'll learn about concepts such as variables, lists, conditional statements, loops, and functions. When you finish the course, you'll be able to write interactive console applications and useful Python scripts to automate common tasks.
The good news is that you don't need an IT background or any programming experience to pass this course! You can gain Python programming skills with no prior knowledge of computer science. All you need to study with us is a web browser. And we provide you with easy-to-understand explanations, practical examples, and tons of interactive exercises. At the end of each section, you'll get a quick recap of the content and take a quiz to consolidate your knowledge.
In 2018, Python rose to become one of the top programming languages in the IT community. Python is used all over the world by software engineers, academics, and computer science enthusiasts alike. It is an extremely versatile language that can be used for web development, machine learning, and data science. It's also the language of choice for most academics in various fields of study, as well as for many software engineers who want to quickly write scripts to automate their work.

What's in it for you?
95 interactive exercises. Learn at your own pace, from anywhere and anytime. Interact with hands-on exercises for improved retention.
Lifetime access to the course.
Certificate of completion. After you successfully finish all of the exercises, you'll get a downloadable PDF certificate to showcase your accomplishment.
Hints for the exercises. You can ask questions and share insights with other members of our community through the Discuss tab.

What Are the Requirements?
Just a web browser

This Course Will Teach You How To:
Create your first Python application: print() text and numbers; accept input() from users
Use variables and math in Python: understand integers, floats and strings; apply basic mathematical operators; convert between variable types
Make decisions with conditional statements: write "if" statements with "elif" and "else"; use comparison operators; join multiple conditions with "and", "or" and "not"; create nested ifs
Repeat code multiple times using loops: write "for" and "while" loops; use "for" loops with range() and strings; write infinite "while" loops; apply nested loops; introduce "break" and "continue" instructions
Write functions to make your code reusable: create functions with and without parameters; define returns values; use default argument values; understand the "None" type; apply the "pass" instruction; document functions

Who Should Take This Course?

  • Students taking entry-level classes in Python
  • Academics who want to leverage Python in their fields of study
  • Anyone who wants to start programming with no prior experience
  • People interested in data science and machine learning
  • Anyone interested in starting a software development career
  • Anyone who wants to automate their work
Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

The Raspberry Pi Platform and Python Programming for the Raspberry Pi (Coursera) Coursera
University of California, Irvine

The Raspberry Pi Platform and Python Programming for the Raspberry Pi (Coursera)

The Raspberry Pi is a small, affordable single-board computer that you will use to design and develop fun and practical IoT devices while learning programming and computer hardware. In addition, you will learn how to set up up the Raspberry Pi environment, get a Linux operating system running, and write and execute some basic Python code on the Raspberry Pi. You will also learn how to use Python-based IDE (integrated development environments) for the Raspberry Pi and how to trace and debug Python code on the device.

Jun 22nd 2026
4 Weeks
Interactivity with JavaScript (Coursera) Coursera
University of Michigan

Interactivity with JavaScript (Coursera)

If you want to take your website to the next level, the ability to incorporate interactivity is a must. But adding some of these types of capabilities requires a stronger programming language than HTML5 or CSS3, and JavaScript can provide just what you need. With just a basic understanding of the language, you can create a page that will react to common events such as page loads, mouse clicks & movements, and even keyboard input.

Jun 22nd 2026
4 Weeks
City Design (Stepic) Other Providers
Stepic

City Design (Stepic)

City Design online course shows the fundamentals of city planning, building and exploitation via funny short video lectures (like the one above) and a variety of brief assignments for self-control. It is ideal for people who want to know about designing the cities before starting professional readings or to draw inspiration.

Mar 1st 2014
5-12 Weeks
Learn to code with AI (Coursera) Coursera
Scrimba

Learn to code with AI (Coursera)

Imagine waking up tomorrow as a web developer. What would you want to build? With AI tools like ChatGPT, you're already a developer, regardless of your experience, if you know how to work with them. So in this course, you'll build functional, interactive front-end projects while learning how to write effective prompts and debug and refine your code with the help of AI.

Jun 24th 2026
2 Weeks
Interfacing with the Raspberry Pi (Coursera) Coursera
University of California, Irvine

Interfacing with the Raspberry Pi (Coursera)

The Raspberry Pi uses a variety of input/output devices based on protocols such as HDMI, USB, and Ethernet to communicate with the outside world. In this class you will learn how to use these protocols with other external devices (sensors, motors, GPS, orientation, LCD screens etc.) to get your IoT device to interact with the real world.

Jun 22nd 2026
4 Weeks
Machine Learning: Classification (Coursera) Coursera
University of Washington

Machine Learning: Classification (Coursera)

Case Studies: Analyzing Sentiment & Loan Default Prediction. In our case study on analyzing sentiment, you will create models that predict a class (positive/negative sentiment) from input features (text of the reviews, user profile information,...). In our second case study for this course, loan default prediction, you will tackle financial data, and predict when a loan is likely to be risky or safe for the bank.

Jun 22nd 2026
5-12 Weeks
Python for Data Science, AI & Development (Coursera) Coursera
IBM

Python for Data Science, AI & Development (Coursera)

Kickstart your learning of Python for data science, as well as programming in general, with this beginner-friendly introduction to Python. Python is one of the world’s most popular programming languages, and there has never been greater demand for professionals with the ability to apply Python fundamentals to drive business solutions across industries.

Jun 23rd 2026
5-12 Weeks
Using Python to Interact with the Operating System (Coursera) Coursera
Google

Using Python to Interact with the Operating System (Coursera)

By the end of this course, you’ll be able to manipulate files and processes on your computer’s operating system. You’ll also have learned about regular expressions -- a very powerful tool for processing text files -- and you’ll get practice using the Linux command line on a virtual machine. And, this might feel like a stretch right now, but you’ll also write a program that processes a bunch of errors in an actual log file and then generates a summary file. That’s a super useful skill for IT Specialists to know.

Jun 23rd 2026
5-12 Weeks
Crash Course on Python (Coursera) Coursera
Google

Crash Course on Python (Coursera)

This course is designed to teach you the foundations in order to write simple programs in Python using the most common structures. No previous exposure to programming is needed. By the end of this course, you'll understand the benefits of programming in IT roles; be able to write simple programs using Python; figure out how the building blocks of programming fit together; and combine all of this knowledge to solve a complex programming problem.

Jun 23rd 2026
5-12 Weeks