30-Days-Of-Python

所属分类:NumPy
开发工具:Python
文件大小:28891KB
下载次数:0
上传日期:2023-04-21 03:59:49
上 传 者sh-1993
说明:  30天Python编程挑战是一个循序渐进的指南,可以在30天内学习Python编程语言。这个挑战可能需要100多天的时间,按照你自己的节奏进行。这些视频也可能有所帮助:<https:www.youtube.com频道UC7PNRuno1rzYPb1xLa4yktw>

文件列表:
01_Day_Introduction (0, 2023-04-02)
01_Day_Introduction\helloworld.py (637, 2023-04-02)
02_Day_Variables_builtin_functions (0, 2023-04-02)
02_Day_Variables_builtin_functions\02_variables_builtin_functions.md (11752, 2023-04-02)
02_Day_Variables_builtin_functions\variables.py (1021, 2023-04-02)
03_Day_Operators (0, 2023-04-02)
03_Day_Operators\03_operators.md (11822, 2023-04-02)
03_Day_Operators\day-3.py (4507, 2023-04-02)
04_Day_Strings (0, 2023-04-02)
04_Day_Strings\04_strings.md (20288, 2023-04-02)
04_Day_Strings\day_4.py (7180, 2023-04-02)
05_Day_Lists (0, 2023-04-02)
05_Day_Lists\05_lists.md (19080, 2023-04-02)
05_Day_Lists\day_5.py (5584, 2023-04-02)
06_Day_Tuples (0, 2023-04-02)
06_Day_Tuples\06_tuples.md (7354, 2023-04-02)
07_Day_Sets (0, 2023-04-02)
07_Day_Sets\07_sets.md (11311, 2023-04-02)
08_Day_Dictionaries (0, 2023-04-02)
08_Day_Dictionaries\08_dictionaries.md (9757, 2023-04-02)
09_Day_Conditionals (0, 2023-04-02)
09_Day_Conditionals\09_conditionals.md (8103, 2023-04-02)
10_Day_Loops (0, 2023-04-02)
10_Day_Loops\10_loops.md (10649, 2023-04-02)
11_Day_Functions (0, 2023-04-02)
11_Day_Functions\11_functions.md (14756, 2023-04-02)
12_Day_Modules (0, 2023-04-02)
12_Day_Modules\12_modules.md (10326, 2023-04-02)
12_Day_Modules\main.py (233, 2023-04-02)
12_Day_Modules\mymodule.py (309, 2023-04-02)
13_Day_List_comprehension (0, 2023-04-02)
13_Day_List_comprehension\13_list_comprehension.md (7175, 2023-04-02)
14_Day_Higher_order_functions (0, 2023-04-02)
14_Day_Higher_order_functions\14_higher_order_functions.md (12392, 2023-04-02)
15_Day_Python_type_errors (0, 2023-04-02)
15_Day_Python_type_errors\15_python_type_errors.md (11704, 2023-04-02)
16_Day_Python_date_time (0, 2023-04-02)
16_Day_Python_date_time\16_python_datetime.md (6835, 2023-04-02)
... ...

# 30 Days Of Python |# Day | Topics | |------|:---------------------------------------------------------:| | 01 | [Introduction](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./readme.md)| | 02 | [Variables, Built-in Functions](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./02_Day_Variables_builtin_functions/02_variables_builtin_functions.md)| | 03 | [Operators](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./03_Day_Operators/03_operators.md)| | 04 | [Strings](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./04_Day_Strings/04_strings.md)| | 05 | [Lists](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./05_Day_Lists/05_lists.md)| | 06 | [Tuples](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./06_Day_Tuples/06_tuples.md)| | 07 | [Sets](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./07_Day_Sets/07_sets.md)| | 08 | [Dictionaries](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./08_Day_Dictionaries/08_dictionaries.md)| | 09 | [Conditionals](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./09_Day_Conditionals/09_conditionals.md)| | 10 | [Loops](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./10_Day_Loops/10_loops.md)| | 11 | [Functions](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./11_Day_Functions/11_functions.md)| | 12 | [Modules](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./12_Day_Modules/12_modules.md)| | 13 | [List Comprehension](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./13_Day_List_comprehension/13_list_comprehension.md)| | 14 | [Higher Order Functions](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./14_Day_Higher_order_functions/14_higher_order_functions.md)| | 15 | [Python Type Errors](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./15_Day_Python_type_errors/15_python_type_errors.md)| | 16 | [Python Date time](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./16_Day_Python_date_time/16_python_datetime.md) | | 17 | [Exception Handling](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./17_Day_Exception_handling/17_exception_handling.md)| | 18 | [Regular Expressions](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./18_Day_Regular_expressions/18_regular_expressions.md)| | 19 | [File Handling](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./19_Day_File_handling/19_file_handling.md)| | 20 | [Python Package Manager](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./20_Day_Python_package_manager/20_python_package_manager.md)| | 21 | [Classes and Objects](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./21_Day_Classes_and_objects/21_classes_and_objects.md)| | 22 | [Web Scraping](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./22_Day_Web_scraping/22_web_scraping.md)| | 23 | [Virtual Environment](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./23_Day_Virtual_environment/23_virtual_environment.md)| | 24 | [Statistics](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./24_Day_Statistics/24_statistics.md)| | 25 | [Pandas](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./25_Day_Pandas/25_pandas.md)| | 26 | [Python web](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./26_Day_Python_web/26_python_web.md)| | 27 | [Python with MongoDB](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./27_Day_Python_with_mongodb/27_python_with_mongodb.md)| | 28 | [API](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./28_Day_API/28_API.md)| | 29 | [Building API](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./29_Day_Building_API/29_building_API.md)| | 30 | [Conclusions](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./30_Day_Conclusions/30_conclusions.md)| §§§ HAPPY CODING §§§
Support the author to create more educational materials
Paypal Logo

30 Days Of Python: Day 1 - Introduction

Twitter Follow Author: Asabeneh Yetayeh
Second Edition: July, 2021
[Day 2 >>](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./02_Day_Variables_builtin_functions/02_variables_builtin_functions.md) ![30DaysOfPython](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/30DaysOfPython_banner3@2x.png) - [ 30 Days Of Python](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#-30-days-of-python) - [“ Day 1](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#-day-1) - [Welcome](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#welcome) - [Introduction](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#introduction) - [Why Python ?](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#why-python-) - [Environment Setup](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#environment-setup) - [Installing Python](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#installing-python) - [Python Shell](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#python-shell) - [Installing Visual Studio Code](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#installing-visual-studio-code) - [How to use visual studio code](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#how-to-use-visual-studio-code) - [Basic Python](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#basic-python) - [Python Syntax](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#python-syntax) - [Python Indentation](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#python-indentation) - [Comments](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#comments) - [Data types](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#data-types) - [Number](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#number) - [String](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#string) - [Booleans](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#booleans) - [List](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#list) - [Dictionary](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#dictionary) - [Tuple](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#tuple) - [Set](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#set) - [Checking Data types](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#checking-data-types) - [Python File](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#python-file) - [’ Exercises - Day 1](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#-exercises---day-1) - [Exercise: Level 1](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#exercise-level-1) - [Exercise: Level 2](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#exercise-level-2) - [Exercise: Level 3](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/#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](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/https://t.me/ThirtyDaysOfPython) 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. 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](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/https://youtu.be/OCCWZheOesI). Subscribe the channel, comment and ask questions on YouTube vidoes 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](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/https://testimonial-vdzd.onrender.com/) ## 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](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/https://www.python.org/) python. If your are a windows user. Click the button encircled in red. [![installing on Windows](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/installing_on_windows.png)](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/https://www.python.org/) If you are a macOS user. Click the button encircled in red. [![installing on Windows](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/installing_on_macOS.png)](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/https://www.python.org/) To check if python is installed write the following command on your device terminal. ```shell python --version ``` ![Python Version](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/python_versio.png) 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: ```shell python ``` ![Python Scripting Shell](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/opening_python_shell.png) 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](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/adding_on_python_shell.png) 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](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/exit_from_shell.png) 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](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/invalid_syntax_error.png) 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](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/fixing_syntax_error.png) 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**. ![Python Scripting Shell](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/opening_python_shell.png) The Python interactive shell is opened. Let us do some basic mathematical operations (addition, subtraction, multiplication, division, modulus, exponential). 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 ```shell # comment starts with hash # this is a python comment, because it starts with a (#) symbol ``` ![Maths on python shell](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/maths_on_python_shell.png) 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. ![Writing String on python shell](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/writing_string_on_shell.png) ### 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](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/https://code.visualstudio.com/) visual studio code, but if you are in favor of other editors, feel free to follow with what you have. [![Visual Studio Code](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/vscode.png)](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/https://code.visualstudio.com/) 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](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/https://www.youtube.com/watch?v=bn7Cx4z-vSo) #### 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. ![Visual studio Code](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/vscode_ui.png) Create a folder named 30DaysOfPython on your desktop. Then open it using visual studio code. ![Opening Project on Visual studio](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/how_to_open_project_on_vscode.png) ![Opening a project](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/opening_project.png) After opening it you will see shortcuts for creating files and folders inside of 30DaysOfPython project's directory. As you can see below, I have created the very first file, helloworld.py. You can do the same. ![Creating a python file](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/helloworld.png) After a long day of coding, you want to close your code editor, right? This is how you will close the opened project. ![Closing project](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/closing_opened_project.png) Congratulations, you have finished setting up the development environment. Let us start coding. ## Basic Python ### Python Syntax A Python script can be written in Python interactive shell or in the code editor. A Python file has an extension .py. ### Python Indentation An indentation is a white space in a text. Indentation in many languages is used to increase code readability, however Python uses indentation to create block of codes. In other programming languages curly brackets are used to create blocks of codes instead of indentation. One of the common bugs when writing python code is wrong indentation. ![Indentation Error](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/indentation.png) ### Comments Comments are very important to make the code more readable and to leave remarks in our code. Python does not run comment parts of our code. Any text starting with hash(#) in Python is a comment. **Example: Single Line Comment** ```shell # This is the first comment # This is the second comment # Python is eating the world ``` **Example: Multiline Comment** Triple quote can be used for multiline comment if it is not assigned to a variable ```shell """This is multiline comment multiline comment takes multiple lines. python is eating the world """ ``` ### Data types In Python there are several types of data types. Let us get started with the most common ones. Different data types will be covered in detail in other sections. For the time being, let us just go through the different data types and get familiar with them. You do not have to have a clear understanding now. #### Number - Integer: Integer(negative, zero and positive) numbers Example: ... -3, -2, -1, 0, 1, 2, 3 ... - Float: Decimal number Example ... -3.5, -2.25, -1.0, 0.0, 1.1, 2.2, 3.5 ... - Complex Example 1 + j, 2 + 4j #### String A collection of one or more characters under a single or double quote. If a string is more than one sentence then we use a triple quote. **Example:** ```py 'Asabeneh' 'Finland' 'Python' 'I love teaching' 'I hope you are enjoying the first day of 30DaysOfPython Challenge' ``` #### Booleans A boolean data type is either a True or False value. T and F should be always uppercase. **Example:** ```python True # Is the light on? If it is on, then the value is True False # Is the light on? If it is off, then the value is False ``` #### List Python list is an ordered collection which allows to store different data type items. A list is similar to an array in JavaScript. **Example:** ```py [0, 1, 2, 3, 4, 5] # all are the same data types - a list of numbers ['Banana', 'Orange', 'Mango', 'Avocado'] # all the same data types - a list of strings (fruits) ['Finland','Estonia', 'Sweden','Norway'] # all the same data types - a list of strings (countries) ['Banana', 10, False, 9.81] # different data types in the list - string, integer, boolean and float ``` #### Dictionary A Python dictionary object is an unordered collection of data in a key value pair format. **Example:** ```py { 'first_name':'Asabeneh', 'last_name':'Yetayeh', 'country':'Finland', 'age':250, 'is_married':True, 'skills':['JS', 'React', 'Node', 'Python'] } ``` #### Tuple A tuple is an ordered collection of different data types like list but tuples can not be modified once they are created. They are immutable. **Example:** ```py ('Asabeneh', 'Pawel', 'Brook', 'Abraham', 'Lidiya') # Names ``` ```py ('Earth', 'Jupiter', 'Neptune', 'Mars', 'Venus', 'Saturn', 'Uranus', 'Mercury') # planets ``` #### Set A set is a collection of data types similar to list and tuple. Unlike list and tuple, set is not an ordered collection of items. Like in Mathematics, set in Python stores only unique items. In later sections, we will go in detail about each and every Python data type. **Example:** ```py {2, 4, 3, 5} {3.14, 9.81, 2.7} # order is not important in set ``` ### Checking Data types To check the data type of certain data/variable we use the **type** function. In the following terminal you will see different python data types: ![Checking Data types](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/checking_data_types.png) ### Python File First open your project folder, 30DaysOfPython. If you don't have this folder, create a folder name called 30DaysOfPython. Inside this folder, create a file called helloworld.py. Now, let's do what we did on python interactive shell using visual studio code. The Python interactive shell was printing without using **print** but on visual studio code to see our result we should use a built in function *print(). The *print()* built-in function takes one or more arguments as follows *print('arument1', 'argument2', 'argument3')*. See the examples below. **Example:** The file name is helloworld.py ```py # Day 1 - 30DaysOfPython Challenge print(2 + 3) # addition(+) print(3 - 1) # subtraction(-) print(2 * 3) # multiplication(*) print(3 / 2) # division(/) print(3 ** 2) # exponential(**) print(3 % 2) # modulus(%) print(3 // 2) # Floor division operator(//) # Checking data types print(type(10)) # Int print(type(3.14)) # Float print(type(1 + 3j)) # Complex number print(type('Asabeneh')) # String print(type([1, 2, 3])) # List print(type({'name':'Asabeneh'})) # Dictionary print(type({9.8, 3.14, 2.7})) # Set print(type((9.8, 3.14, 2.7))) # Tuple ``` To run the python file check the image below. You can run the python file either by running the green button on Visual Studio Code or by typing *python helloworld.py* in the terminal . ![Running python script](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/./images/running_python_script.png) You are amazing. You have just completed day 1 challenge and you are on your way to greatness. Now do some exercises for you ... ...

近期下载者

相关文件


收藏者