Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
3

30-Days-Of-Python

> 编程语言
Free

The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming

80.1K stars0 likes5 views
WebsiteGitHub

About

The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming

🐍 30 Days Of Python

# Day Topics
01 Introduction
02 Variables, Built-in Functions
03 Operators
04 Strings
05 Lists
06 Tuples
07 Sets
08 Dictionaries
09 Conditionals
10 Loops
11 Functions
12 Modules
13 List Comprehension
14 Higher Order Functions
15 Python Type Errors
16 Python Date time
17 Exception Handling
18 Regular Expressions
19 File Handling
20 Python Package Manager
21 Classes and Objects
22 Web Scraping
23 Virtual Environment
24 Statistics
25 Pandas
26 Python web
27 Python with MongoDB
28 API
29 Building API
30 Conclusions

🧡🧡🧡 HAPPY CODING 🧡🧡🧡


-->

🙌 Become a Sponsor

You can support this project by becoming a sponsor on GitHub Sponsors or through PayPal.

Every contribution, big or small, makes a huge difference. Thank you for your support! 🌟


🇧🇷 Portuguese 🇨🇳 中文 🇫🇷French Day 2 >>

  • 🐍 30 Days Of Python
    • 🙌 Become a Sponsor
  • 📘 Day 1
    • Welcome
    • Introduction
    • Why Python ?
    • Environment Setup
      • Installing Python
      • Python Shell
      • Installing Visual Studio Code
        • How to use visual studio code
    • Basic Python
      • Python Syntax
      • Python Indentation
      • Comments
      • Data types
        • Number
        • String
        • Booleans
        • List
        • Dictionary
        • Tuple
        • Set
      • Checking Data types
      • Python File
    • 💻 Exercises - Day 1
      • Exercise: Level 1
      • Exercise: Level 2
      • Exercise: Level 3

📘 Day 1

Welcome

Congratulations for deciding to participate in a 30 days of Python programming challenge. In this challenge, you will learn everything you need to be a python programmer and the whole concept of programming. In the end of the challenge you will get a 30DaysOfPython programming challenge certificate.

If you would like to actively engage in the challenge, you may join the 30DaysOfPython challenge telegram group.

Introduction

Python is a high-level programming language for general-purpose programming. It is an open source, interpreted, object-oriented programming language. Python was created by a Dutch programmer, Guido van Rossum. The name of the Python programming language was derived from a British sketch comedy series, Monty Python's Flying Circus. The first version was released on February 20, 1991. This 30 days of Python challenge will help you learn the latest version of Python, Python 3 step by step. The topics are broken down into 30 days, where each day contains several topics with easy-to-understand explanations, real-world examples, and many hands on exercises and projects.

This challenge is designed for beginners and professionals who want to learn python programming language. It may take 30 to 100 days to complete the challenge. People who actively participate in the telegram group have a high probability of completing the challenge.

This challenge is easy to read, written in conversational English, engaging, motivating and at the same time, it is very demanding. You need to allocate much time to finish this challenge. If you are a visual learner, you may get the video lesson on Washera YouTube channel. You may start from Python for Absolute Beginners video. Subscribe the channel, comment and ask questions on YouTube videos and be proactive, the author will eventually notice you.

The author likes to hear your opinion about the challenge, share the author by expressing your thoughts about the 30DaysOfPython challenge. You can leave your testimonial on this link

Why Python ?

It is a programming language which is very close to human language and because of that, it is easy to learn and use. Python is used by various industries and companies (including Google). It has been used to develop web applications, desktop applications, system administration, and machine learning libraries. Python is a highly embraced language in the data science and machine learning community. I hope this is enough to convince you to start learning Python. Python is eating the world and you are killing it before it eats you.

Environment Setup

Installing Python

To run a python script you need to install python. Let's download python. If your are a windows user, click the button encircled in red. If you are a macOS user, click the button encircled in red. To check if python is installed write the following command on your device terminal.

bash
python3 --version

As you can see from the terminal, I am using Python 3.7.5 version at the moment. Your version of Python might be different from mine by but it should be 3.6 or above. If you manage to see the python version, well done. Python has been installed on your machine. Continue to the next section.

Python Shell

Python is an interpreted scripting language, so it does not need to be compiled. It means it executes the code line by line. Python comes with a Python Shell (Python Interactive Shell). It is used to execute a single python command and get the result.

Python Shell waits for the Python code from the user. When you enter the code, it interprets the code and shows the result in the next line. Open your terminal or command prompt(cmd) and write:

bash
python

The Python interactive shell is opened and it is waiting for you to write Python code(Python script). You will write your Python script next to this symbol >>> and then click Enter. Let us write our very first script on the Python scripting shell.

Well done, you wrote your first Python script on Python interactive shell. How do we close the Python interactive shell ? To close the shell, next to this symbol >>> write exit() command and press Enter.

Now, you know how to open the Python interactive shell and how to exit from it.

Python will give you results if you write scripts that Python understands, if not it returns errors. Let's make a deliberate mistake and see what Python will return.

As you can see from the returned error, Python is so clever that it knows the mistake we made and which was Syntax Error: invalid syntax. Using x as multiplication in Python is a syntax error because (x) is not a valid syntax in Python. Instead of (x) we use asterisk (*) for multiplication. The returned error clearly shows what to fix.

The process of identifying and removing errors from a program is called debugging. Let us debug it by putting * in place of x.

Our bug was fixed, the code ran and we got a result we were expecting. As a programmer you will see such kind of errors on daily basis. It is good to know how to debug. To be good at debugging you should understand what kind of errors you are facing. Some of the Python errors you may encounter are SyntaxError, IndexError, NameError, ModuleNotFoundError, KeyError, ImportError, AttributeError, TypeError, ValueError, ZeroDivisionError etc. We will see more about different Python error types in later sections.

Let us practice more how to use Python interactive shell. Go to your terminal or command prompt and write the word python.

The Python interactive shell is opened. Let us do some basic mathematical operations (addition, subtraction, multiplication, division, modulus, exponentiation).

Let us do some maths first before we write any Python code:

  • 2 + 3 = 5
  • 3 - 2 = 1
  • 3 * 2 = 6
  • 3 / 2 = 1.5
  • 3 ** 2 = 3 x 3 = 9

In python, we have the following additional operations:

  • 3 % 2 = 1 => which means finding the remainder
  • 3 // 2 = 1 => which means removing the remainder

Let us change the above mathematical expressions to Python code. The Python shell has been opened and let us write a comment at the very beginning of the shell.

A comment is a part of the code which is not executed by python. So we can leave some text in our code to make our code more readable. Python does not run the comment part. A comment in python starts with hash(#) symbol. This is how you write a comment in python

bash
 # comment starts with hash
 # this is a python comment, because it starts with a (#) symbol

Before we move on to the next section, let us practice more on the Python interactive shell. Close the opened shell by writing exit() on the shell and open it again and let us practice how to write text on the Python shell.

Installing Visual Studio Code

The Python interactive shell is good to try and test small script codes but it will not be for a big project. In real work environment, developers use different code editors to write codes. In this 30 days of Python programming challenge, we will use Visual Studio Code. Visual Studio Code is a very popular open source text editor. I am a fan of vscode and I would recommend to download visual studio code, but if you are in favor of other editors, feel free to follow with what you have. If you installed visual studio code, let us see how to use it. If you prefer a video, you can follow this Visual Studio Code for Python Video tutorial

How to use visual studio code

Open the visual studio code by double clicking the visual studio icon. When you open it you will get this kind of interface. Try to interact with the labeled icons.

Create a folder named 30DaysOfPython on your desktop. Then open it using visual studio code.

After opening it, you will see shortcuts for creating files and folders inside of 30

Issues· 219 open

View all issuesOpen on GitHub
  • #980

    питон

    Updated Sep 21, 2026
  • #979

    1

    Updated Sep 20, 2026
  • #971

    Oui

    Updated Sep 10, 2026
  • #957

    Exercise: level 2 |day 11 funtions

    Updated Aug 28, 2026
  • #925

    Proposal: Traditional Chinese Translation (繁體中文版 / zh-TW)

    Updated Aug 20, 2026
  • #943

    Incorrect index() section uses find()

    Updated Aug 19, 2026
  • #924

    Duplicate/mislabeled `isdecimal()` section

    Updated Aug 2, 2026
  • #914

    Day 29 - Countries API link is not longer working

    Updated Jul 29, 2026
  • #920

    Incorrect expected output in decorator example

    Updated Jul 27, 2026
  • #915

    Minor error in day 3

    Updated Jul 17, 2026

> Tags

Python30-days-of-pythondatadata-science

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedDec 4, 2026
Category编程语言
PricingFree

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言