< 1 2 3 4 5 6 > >>   Sort: Date

re.findall() - Find All Matches
How to find all matches of a regular expression using re.findall()? The re.findall() function allows you to find all matches of a given regular expression in a target string. import re l = re.findall(pattern, string, flags=0) Where: pattern is the regular expression string is the target string l is ...
2018-10-19, 1912🔥, 0💬

'while ... else' Repeating Statement Blocks
How to enter "while ... else" statement blocks in Python code? "while ... else" statement blocks allow you to execute the main statement block repeatedly. When "while ... else" statement blocks are interpreted, the "while" statement block will be executed repeatedly until the given condition returns...
2018-02-28, 1908🔥, 0💬

'while ... else' Repeating Statement Blocks
How to enter "while ... else" statement blocks in Python code? "while ... else" statement blocks allow you to execute the main statement block repeatedly. When "while ... else" statement blocks are interpreted, the "while" statement block will be executed repeatedly until the given condition returns...
2018-02-28, 1908🔥, 0💬

Download Latest Version of Python for Windows
How to download the latest version of Python on my Windows computer? You can follow this tutorial to download the latest version of Python on your Windows computer: 1. Go to Python download Website . 2. Click the "Download Python 3.6.2" button. You see the download file save prompt. 3. Save the down...
2018-04-12, 1900🔥, 0💬

Sending an HTTP Request with 'urllib.request'
How to send an HTTP request using the "urllib.request" module? To send an HTTP request to the Internet, you can use the urllib.request.urlopen() function as described below: r = urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None, capath=None, cadefault=False, context=None) where: url c...
2018-09-24, 1862🔥, 0💬

sys.argv - Command Line Argument List
How to retrieve command line arguments with sys.argv list? If execute a Python script file with the "python" command, you can use the sys.argv list to retrieve command line arguments. Note that the first argument, sys.argv[0], represents the Python script file name. Here is a Python script file exam...
2018-11-11, 1847🔥, 0💬

re.split() - Splits with Regular Expression
How to split a given string with a regular expression as the delimiter using re.split()? The re.split() function allows you to split a given target string using matches of a given regular expression as the delimiter. import re l = re.split(pattern, string, maxsplit=0, flags=0) Where: pattern is the ...
2018-10-13, 1787🔥, 0💬

What Is Python
What Is Python? Python is a widely used high-level programming language for general-purpose programming, created by Guido van Rossum and first released in 1991. Main features of Python: Python is a multi-paradigm programming language: object-oriented programming and structured programming are fully ...
2018-02-01, 1774🔥, 0💬

What Is Python Module 'requests'
What Is Python module "requests"? "requests" is a Python external module that allows you to send organic, grass-fed HTTP/1.1 requests, without the need for manual labor. There’s no need to manually add query strings to your URLs, or to form-encode your POST data. Main features of "requests" module: ...
2018-09-01, 1720🔥, 0💬

'requests' Module - HTTP for Humans
Where to find tutorials on Python "requests" Module? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Python "requests" Module. What Is Python Module 'requests' Installing 'requests' Module Sending an HTTP Request with 'requests' requests.models...
2018-09-01, 1704🔥, 0💬

re.sub() - Substitute Matches with String
How to substitutes matches of a regular expression in a target string with another string using re.sub()? The re.sub() function allows you to substitute (or replace) matches of a given regular expression in match the beginning part of a target string with of a given regular expression. import re f =...
2018-10-19, 1696🔥, 0💬

What Is Python Interactive Mode
What Is Python Interactive Mode? Python Interactive Mode allows you to use Python as an interpreted language. When running in interactive mode, Python will: Prompt you to enter one statement or statement block at a time. Execute the statement or statement block immediately. Print back the result if ...
2018-04-12, 1669🔥, 0💬

'for ... in' Statement with List of Tuples
How to use "for ... in" statements with a list of tuples in Python code? Usually, "for ... in" statements are used with simple lists. But you can also use a "for ... in" statement with a list of tuples. In this case, you can put multiple looping variables inside the loop item: for (v1, v2, ... ) in ...
2018-08-14, 1643🔥, 0💬

What Is Python Module 'urllib'
What Is Python module "urllib"? "urllib" is a Python internal module that allows you to communicate with Internet resources that are represented by URLs. Two main Internet protocols are supported: HTTP and FTP. The current version of "urllib" module is divided into 4 sub-modules: urllib.request - fo...
2018-09-24, 1642🔥, 0💬

Start Python in Interactive Mode
How to Start Python in Interactive Mode on my Windows computer? You can start Python in interactive mode on your Windows computer in several ways: 1. "python" in command window - In a command window, enter the "python" command. If the python installation folder is in the PATH environment variable, t...
2023-01-06, 1628🔥, 0💬

re.match() - Match from String Beginning
How to match the beginning part of a target string with a regular expression using re.match()? The re.match() function allows you to match the beginning part of a target string with of a given regular expression. import re m = re.match(pattern, string, flags=0) Where: pattern is the regular expressi...
2018-10-19, 1620🔥, 0💬

help() - Getting Help in Python Interactive Mode
How to get help with the help() function in Python interactive mode? If you help in Python interactive mode, you can run the help() function. It will bring you to the Python help mode. Here is a simple Python interactive session that shows how to use the Python help() function: C:\fyicenter&gt; ...
2023-01-06, 1617🔥, 0💬

Function Calling Expressions
How to call a function in an expression in Python? To call a function and execute its statement block in an expression, you can enter the function name followed by a list of values to be assigned to parameters defined in the function. For example, the profile("Joe",25) expression calls the "profile(...
2023-03-22, 1577🔥, 2💬

Function Calling Expressions
How to call a function in an expression in Python? To call a function and execute its statement block in an expression, you can enter the function name followed by a list of values to be assigned to parameters defined in the function. For example, the profile("Joe",25) expression calls the "profile(...
2023-03-22, 1577🔥, 2💬

Verify Python Installation on Windows
How to verify the Python installation on my Windows computer? You can follow this tutorial to verify the Python installation on your Windows computer: 1. Search Python with the Start button - Enter "Python" in the search box after clicking the "Start" button. If the "Python" is displayed in the sear...
2018-04-12, 1566🔥, 0💬

Sending an HTTP Request with 'requests'
How to send an HTTP request? I have the "requests" module installed now. The "requests" module provides 6 static functions to support 6 HTTP request types: &gt;&gt;&gt; r = requests.get(url) &gt;&gt;&gt; r = requests.post(url, data = {'key':'value'}) &gt;&gt;&gt; ...
2018-09-01, 1554🔥, 0💬

Defining Functions in Python
Where to find tutorials in Defining Functions in Python? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Defining Functions in Python: What Is Function 'def' - Function Definition Statements 'return' Statement in Function Statement Block Functi...
2017-09-12, 1527🔥, 0💬

Defining and Using Class for New Data Types
Where to find tutorials on Defining and Using Class for New Data Types in Python? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Defining and Using Class for New Data Types in Python: What Is Class 'class' - Class Definition Statements Classes...
2018-05-08, 1521🔥, 0💬

're' Module - Regular Expression Operations
Where to find tutorials on Python "re" Module? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Python "re" Module. What Is Python Module 're' re.search() - Search for First Match re.findall() - Find All Matches re.match() - Match from String Be...
2018-11-11, 1520🔥, 0💬

< 1 2 3 4 5 6 > >>   Sort: Date