{"id":37,"date":"2020-09-02T08:29:17","date_gmt":"2020-09-02T08:29:17","guid":{"rendered":"https:\/\/www.pythontutorial.net\/?page_id=37"},"modified":"2025-03-31T01:37:56","modified_gmt":"2025-03-31T01:37:56","slug":"python-basics","status":"publish","type":"page","link":"https:\/\/www.pythontutorial.net\/python-basics\/","title":{"rendered":"Python Basics"},"content":{"rendered":"\n<p>In this section, you&#8217;ll learn basic Python. If you&#8217;re completely new to Python programming, this Python basics section is perfect for you.<\/p>\n\n\n\n<p>After completing the tutorials, you&#8217;ll be confident in Python programming and be able to create simple programs in Python.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='fundamentals'>Section 1. Fundamentals <a href=\"#fundamentals\" class=\"anchor\" id=\"fundamentals\" title=\"Anchor for Section 1. Fundamentals\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-syntax\/\">Syntax<\/a>  &#8211; introduce you to the basic Python programming syntax.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-variables\/\">Variables<\/a> &#8211; explain to you what variables are and how to create concise and meaningful variables.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-string\/\">Strings<\/a> &#8211; learn about string data and some basic string operations.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-numbers\/\">Numbers<\/a> &#8211; introduce to you the commonly-used number types including integers and floating-point numbers.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-boolean\/\">Booleans<\/a> &#8211; explain the Boolean data type, falsy and truthy values in Python.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-constants\/\">Constants<\/a> &#8211; show you how to define constants in Python.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-comments\/\">Comments<\/a> &#8211; learn how to make notes in your code.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-type-conversion\/\">Type conversion<\/a> &#8211; learn how to convert a value of one type to another e.g., converting a string to a number.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='operators'>Section 2. Operators <a href=\"#operators\" class=\"anchor\" id=\"operators\" title=\"Anchor for Section 2. Operators\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-arithmetic-operators\/\">Arithmetic operators<\/a> &#8211; learn how to use arithmetic operators to perform mathematical operations.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-assignment-operators\/\">Assignment operators<\/a> &#8211; guide on how to use assignment operators to assign values to variables.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-comparison-operators\/\">Comparison operators<\/a> &#8211; introduce you to the comparison operators and how to use them to compare two values.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-logical-operators\/\">Logical operators<\/a> &#8211; show you how to use logical operators to combine multiple conditions.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='control-flow'>Section 3. Control flow <a href=\"#control-flow\" class=\"anchor\" id=\"control-flow\" title=\"Anchor for Section 3. Control flow\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-if\/\">if&#8230;else statement<\/a> &#8211; learn how to execute a code block based on a condition.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-ternary-operator\/\">Ternary operator<\/a> &#8211; introduce you to the Python ternary operator that makes your code more concise.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-for-range\/\">for loop with range()<\/a> &#8211; show you how to execute a code block for a fixed number of times by using the for loop with range() function.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-while\/\">while<\/a>&#8211; show you how to execute a code block as long as a condition is True.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-break\/\">break<\/a> &#8211; learn how to exit a loop prematurely.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-continue\/\">continue<\/a> &#8211; show you how to skip the current loop iteration and start the next one.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-pass\/\">pass<\/a> &#8211;  show you how to use the pass statement as a placeholder.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='functions'>Section 4. Functions <a href=\"#functions\" class=\"anchor\" id=\"functions\" title=\"Anchor for Section 4. Functions\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-functions\/\">Python functions<\/a> &#8211; introduce you to functions in Python, and how to define functions, and reuse them in the program.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-default-parameters\/\">Default parameters<\/a> &#8211; show you how to specify the default values for function parameters.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-keyword-arguments\/\">Keyword arguments<\/a> &#8211;  learn how to use the keyword arguments to make the function call more obvious.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-recursive-functions\/\">Recursive functions<\/a> &#8211; learn how to define recursive functions in Python.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-lambda-expressions\/\">Lambda Expressions<\/a>  &#8211; show you how to define anonymous functions in Python using lambda expressions.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-function-docstrings\/\">Docstrings<\/a> &#8211; show you how to use docstrings to document a function.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='lists'>Section 5. Lists <a href=\"#lists\" class=\"anchor\" id=\"lists\" title=\"Anchor for Section 5. Lists\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-list\/\">List<\/a> &#8211; introduce you to the list type and how to manipulate list elements effectively.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-tuples\/\">Tuple<\/a> &#8211; introduce you to the tuple which is a list that doesn&#8217;t change throughout the program.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-sort-list\/\">Sort a list in place<\/a> &#8211; show you how to use the sort() method to sort a list in place.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-sorted\/\">Sort a List<\/a> &#8211; learn how to use the sorted() function to return a new sorted list from the original list.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-list-slice\/\">Slice a List<\/a> &#8211; show you how to use the list slicing technique to manipulate lists effectively.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-unpack-list\/\">Unpack a list<\/a> &#8211; show you how to assign list elements to multiple variables using list unpacking.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-for-loop-list\/\">Iterate over a List<\/a> &#8211; learn how to use a for loop to iterate over a list.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-find-index-of-element-in-list\/\">Find the index of an element<\/a> &#8211; show you how to find the index of the first occurrence of an element in a list.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-iterables\/\">Iterables<\/a> &#8211; explain to you iterables, and the difference between an iterable and an iterator.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-map-list\/\">Transform list elements with map()<\/a> &#8211; show you how to use the map() function to transform list elements. <\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-filter-list\/\">Filter list elements with filter()<\/a> &#8211; use the filter() function to filter list elements.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-reduce-list\/\">Reduce list elements into a value with reduce()<\/a> &#8211; use the reduce() function to reduce list elements into a single value.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-list-comprehensions\/\">List comprehensions<\/a> &#8211; show you how to create a new list based on an existing list.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='dictionaries'>Section 6. Dictionaries <a href=\"#dictionaries\" class=\"anchor\" id=\"dictionaries\" title=\"Anchor for Section 6. Dictionaries\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-dictionary\/\">Dictionary<\/a> &#8211; introduce you to the dictionary type.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-dictionary-comprehension\/\">Dictionary comprehension<\/a> &#8211; show you how to use dictionary comprehension to create a new dictionary from an existing one.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='sets'>Section 7. Sets <a href=\"#sets\" class=\"anchor\" id=\"sets\" title=\"Anchor for Section 7. Sets\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-set\/\">Set<\/a> &#8211; explain to you the Set type and show you how to manipulate set elements effectively.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-set-comprehension\/\">Set comprehension<\/a> &#8211; explain to you the set comprehension so that you can create a new set based on an existing set with a more concise and elegant syntax.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-set-union\/\">Union of Sets<\/a> &#8211; show you how to union two or more sets using the <code>union()<\/code> method or set union operator (<code>|<\/code>).<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-set-intersection\/\">Intersection of Sets<\/a> &#8211; show you how to intersect two or more sets using the intersection() method or set intersection operator (<code>&amp;<\/code>).<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-set-difference\/\">Difference of sets<\/a> &#8211; learn how to find the difference between sets using the set <code>difference()<\/code> method or set difference operator (<code>-<\/code>)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-symmetric-difference\/\">Symmetric Difference of sets<\/a> &#8211; guide you on how to find the symmetric difference of sets using the <code>symmetric_difference()<\/code> method or the symmetric difference operator (<code>^<\/code>).<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-issubset\/\">Subset<\/a> &#8211; check if a set is a subset of another set.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-issuperset\/\">Superset<\/a> &#8211; check if a set is a superset of another set.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-disjoint-sets\/\">Disjoint sets<\/a> &#8211; check if two sets are disjoint.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='exception-handling'>Section 8. Exception handling <a href=\"#exception-handling\" class=\"anchor\" id=\"exception-handling\" title=\"Anchor for Section 8. Exception handling\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-try-except\/\">try&#8230;except<\/a> &#8211; show you how to handle exceptions more gracefully using the try&#8230;except statement.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-try-except-finally\/\">try&#8230;except&#8230;finally<\/a> &#8211; learn how to execute a code block whether an exception occurs or not.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-try-except-else\/\">try&#8230;except&#8230;else<\/a> &#8211; explain to you how to use the try&#8230;except&#8230;else statement to control the follow of the program in case of exceptions.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='more-on-python-loops'>Section 9. More on Python Loops <a href=\"#more-on-python-loops\" class=\"anchor\" id=\"more-on-python-loops\" title=\"Anchor for Section 9. More on Python Loops\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-for-else\/\">for&#8230;else<\/a> &#8211; explain to you the <code>for else<\/code> statement.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-while-else\/\">while&#8230;else<\/a> &#8211; discuss the <code>while else<\/code> statement.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-do-while\/\">do&#8230;while<\/a> loop emulation &#8211; show you how to emulate the do&#8230;while loop in Python by using the while loop statement.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='more-on-python-functions'>Section 10. More on Python functions <a href=\"#more-on-python-functions\" class=\"anchor\" id=\"more-on-python-functions\" title=\"Anchor for Section 10. More on Python functions\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-unpacking-tuple\/\">Unpacking tuples<\/a> &#8211; show you how to unpack a tuple that assigns individual elements of a tuple to multiple variables.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-args\/\"><code>*args<\/code> Parameters<\/a> &#8211;  learn how to pass a variable number of arguments to a function.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-kwargs\/\"><code>**kwargs<\/code> Parameters<\/a> &#8211; show you how to pass a variable number of keyword arguments to a function.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-partial-functions\/\">Partial functions<\/a> &#8211; learn how to define partial functions.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-type-hints\/\">Type hints<\/a> &#8211; show you how to add type hints to the parameters of a function and how to use the static type checker (mypy) to check the type statically.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='modules-packages'>Section 11. Modules &amp; Packages <a href=\"#modules-packages\" class=\"anchor\" id=\"modules-packages\" title=\"Anchor for Section 11. Modules &amp; Packages\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-module\/\">Modules<\/a> &#8211; introduce you to the Python modules and show you how to write your own modules.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-module-search-path\/\">Module search path<\/a> &#8211; explain to you how the Python module search path works when you import a module.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-__name__\/\"><code>__name__<\/code> variable<\/a> &#8211; show you how to use the <code>__name__<\/code> variable to control the execution of a Python file as a script or as a module.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-packages\/\">Packages<\/a> &#8211; learn how to use packages to organize modules in more structured ways.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-private-functions\/\">Private functions<\/a> &#8211; define private functions in Python.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='working-with-files'>Section 12. Working with files <a href=\"#working-with-files\" class=\"anchor\" id=\"working-with-files\" title=\"Anchor for Section 12. Working with files\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-read-text-file\/\">Read from a text file<\/a> &#8211; learn how to read from a text file.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-write-text-file\/\">Write to a text file<\/a> &#8211; show you how to write to a text file.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-create-text-file\/\">Create a new text file<\/a> &#8211; walk you through the steps of creating a new text file.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-check-if-file-exists\/\">Check if a file exists<\/a> &#8211; show you how to check if a file exists.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-read-csv-file\/\">Read CSV files<\/a> &#8211; show you how to read data from a CSV file using the csv module.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-write-csv-file\/\">Write CSV files<\/a> &#8211; learn how to write data to a CSV file using the csv module.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-rename-file\/\">Rename a file<\/a> &#8211; guide you on how to rename a file.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-delete-file\/\">Delete a file<\/a> &#8211; show you how to delete a file.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='working-directories'>Section 13. Working Directories <a href=\"#working-directories\" class=\"anchor\" id=\"working-directories\" title=\"Anchor for Section 13. Working Directories\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-directory\/\">Working with directories<\/a> &#8211; show you commonly used functions to work with directories.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-list-files\/\">List files in a Directory<\/a> &#8211;  list files in a directory.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='strings'>Section 14. Strings <a href=\"#strings\" class=\"anchor\" id=\"strings\" title=\"Anchor for Section 14. Strings\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-f-strings\/\">F-strings<\/a> &#8211; learn how to use the f-strings to format text strings in a clear syntax.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-raw-strings\/\">Raw strings<\/a> &#8211; use raw strings to handle strings that contain the backslashes.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-backslash\/\">Backslash<\/a> &#8211; explain how Python uses the backslashes (<code>\\<\/code>) in string literals.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id='third-party-packages-pip-and-virtual-environments'>Section 15. Third-party Packages, PIP, and Virtual Environments <a href=\"#third-party-packages-pip-and-virtual-environments\" class=\"anchor\" id=\"third-party-packages-pip-and-virtual-environments\" title=\"Anchor for Section 15. Third-party Packages, PIP, and Virtual Environments\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-pip\/\">Python Package Index (PyPI) and pip<\/a> &#8211; introduce you to the Python package index and how to install third-party packages using pip.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-virtual-environments\/\">Virtual Environments<\/a> &#8211; understand Python virtual environments and more importantly, why you need them.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pythontutorial.net\/python-basics\/install-pipenv-windows\/\">Install pipenv on Windows<\/a> &#8211; show you how to install the <code>pipenv<\/code> tool on Windows.<\/li>\n<\/ul>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this section, you&#8217;ll learn the basic Python programming. If you&#8217;re completely new to Python programming, this section is perfect for you. After completing the tutorials, you&#8217;ll be familiar with the basic Python programming. <\/p>\n","protected":false},"author":1,"featured_media":2389,"parent":0,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-37","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":4,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/37\/revisions"}],"predecessor-version":[{"id":7265,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/37\/revisions\/7265"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/media\/2389"}],"wp:attachment":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/media?parent=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}