inflearn logo

Python Basics: 20 Lessons to Never Get Confused Again

It explains Python basics over 20 lessons, in this order: variables, conditionals and loops, data structures, functions, errors and exceptions, files and CSV/JSON, classes, and unit testing. It uses code and execution results to clarify common points of confusion for beginners, such as 0 vs. None, copying lists, and function defaults, and outlines how to choose what to use in different situations.

28 learners are taking this course

Level Beginner

Course period Unlimited

Python
Python
pytest
pytest
python3
python3
Python
Python
pytest
pytest
python3
python3

What you will gain after the course

  • You can understand variables as “name tags attached to objects” and explain == and is, string cleanup, and conditionals that distinguish between 0 and None. (Lessons 2–5)

  • You can understand the differences between copying and sorting lists, and choose the right option for each situation from for, enumerate, zip, while, match, tuples, sets, and dictionaries. (Lessons 6–10)

  • You can understand return values and default arguments, variable scope, *args and **kwargs, and lambda sort keys, and write functions while avoiding the mutable default argument trap. (Lessons 11–13)

  • You can read the traceback from the bottom to find the line causing the error, then use try/except to handle only the exceptions you need. (Lessons 14–15)

  • You can understand the basic uses of modules and virtual environments, read and write files using `with`, `pathlib`, and UTF-8, and read CSV files and save them as JSON. (Lessons 16–18)

  • You can bundle data and behavior together in a dataclass and write your first unit test with unittest or pytest. (Lessons 19–20)

Recommended for
these people

Who is this course right for?

  • For those who are new to Python

  • Someone who tried learning a little Python a while ago but got confused and gave up.

  • For those who get stuck on a small error while trying to fix Python code written by AI

  • For those who want to understand why code works the way it does rather than memorize grammar.

Need to know before starting?

  • It's okay if you have no programming experience.

  • It would be helpful if you could install Python yourself and run commands in the terminal (the installation process isn’t covered in the course).

Hello
This is catgpt

Career Verified

A through-and-through AI researcher, 'CatGPT', who busted their ass reading papers and fine-tuning models. Then one day, a bolt-from-the-blue mission landed in their lap: "You’ve finished building the model, right? Now write the front end and back end too so we can deliver it to the client."

To survive, I was forced to make a tearful career change into a full-stack developer. After successfully delivering the solution and making it back, AI had advanced so much that this time, instead of coding, I found myself taking on the role of a PM coordinating a team with AI...!

Not stopping there, this max-level engineer went all in and poured their full-stack soul into building a “lecture production automation pipeline” and even bringing an “AI instructor” to life. What fate awaits CatGPT, the full-stack AI engineer who has automated even their own livelihood(?)!

More

Reviews

Not enough reviews.
Please write a valuable review that helps everyone!

catgpt's other courses

Check out other courses by the instructor!

Similar courses

Explore other courses in the same field!

Free