SkillAgentSearch skills...

30DaysOfPythonChallenge

https://github.com/Asabeneh/30-Days-Of-Python

Install / Use

/learn @choierica/30DaysOfPythonChallenge
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

🐍 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 🧡🧡🧡

<div> <small>Support the <strong>author</strong> to create more educational materials</small> <br /> <a href = "https://www.paypal.me/asabeneh"><img src='./images/paypal_lg.png' alt='Paypal Logo' style="width:10%"/></a> </div> <div align="center"> <h1> 30 Days Of Python: Day 1 - Introduction</h1> <a class="header-badge" target="_blank" href="https://www.linkedin.com/in/asabeneh/"> <img src="https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social"> </a> <a class="header-badge" target="_blank" href="https://twitter.com/Asabeneh"> <img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/asabeneh?style=social"> </a>

<sub>Author: <a href="https://www.linkedin.com/in/asabeneh/" target="_blank">Asabeneh Yetayeh</a><br> <small> Second Edition: July, 2021</small> </sub>

</div>

Day 2 >>

30DaysOfPython

📘 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, objected-oriented programming language. Python was created by a Dutch programmer, Guido van Rossum. The name of Python programming language was derived from a British sketch comedy series, Month 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, 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 on the telegram group have a high probability of completing the challenge. If you are a visual learner or in favor of videos, you may get started with this Python for Absolute Beginners video.

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 adminstration, and machine learning libraries. Python is 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.

installing on Windows

If you are a macOS user. Click the button encircled in red.

installing on Windows

To check if python is installed write the following command on your device terminal.

python --version

Python 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 mange 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:

python

Python Scripting Shell

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.

Python script on Python 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.

Exit from python shell

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.

Invalid Syntax Error

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.

Fixing Syntax Error

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

Related Skills

View on GitHub
GitHub Stars62
CategoryDevelopment
Updated1d ago
Forks8

Languages

Python

Security Score

80/100

Audited on Apr 1, 2026

No findings