Python

Python HTTP Client Request - GET, POST — step-by-step Python tutorial on Progressive Robot

Python HTTP Client Request – GET, POST

URL: https://www.progressiverobot.com/python-http-client-request-get-post/ Python HTTP module defines the classes which provide the client-side of the HTTP and HTTPS protocols. In most of the programs, the HTTP module is not directly used and is clubbed with the urllib module to handle URL connections and interaction with HTTP requests. Today we will learn how to use a Python […]

Read more
Python OrderedDict — step-by-step Python tutorial on Progressive Robot

Python OrderedDict

URL: https://www.progressiverobot.com/python-ordereddict/ Python OrderedDict is a [dict](/community/tutorials/python-dictionary) subclass that maintains the items insertion order. When we iterate over an OrderedDict, items are returned in the order they were inserted. A regular dictionary doesn't track the insertion order. So when iterating over it, items are returned in an arbitrary order. When we want to make sure […]

Read more
Python String Substring — step-by-step Python tutorial on Progressive Robot

Python String Substring

A substring is the part of a string. Python string provides various methods to create a substring, check if it contains a substring, index of substring etc. In this tutorial, we will look into various operations related to substrings.

Read more
如何使用Python的交互控制台 — step-by-step Python tutorial on Progressive Robot

如何使用Python的交互控制台

Python的交互控制台(也叫做Python解释器,或是Python Shell)为程序员提供了”运行指令”和”不创建文件测试测试代码”的快速途径。 交互控制台可以调用所有的Python内置函数和任何已安装的模块、命令行历史、和自动补全。它为”探索Python语言”和”写好代码后粘贴入文件”提供了便利。 这个教程中我们将介绍如何使用Python的交互控制台,以及促使它成为你的得力编程工具。 从”本地电脑”或者”安装了Python的服务器”都可以进入Python交互控制台。 …

Read more
Understanding Boolean Logic in Python 3 — step-by-step Python tutorial on Progressive Robot

Understanding Boolean Logic in Python 3

The Boolean data type can be one of two values, either True or False. We use Booleans in programming to make comparisons and to control the flow of the program. In this tutorial, we’ll go over the basics you’ll need to understand how Booleans work, including Boolean comparison and logical operators, and truth tables.

Read more
CHAT