1 2 >   Sort: Date

Python Tutorials
Where to find tutorials on Python programming language? I want to learn Python. Here is a large collection of tutorials to answer many frequently asked questions compiled by FYIcenter.com team about Python programming language: Introduction of Python What Is Python Download Latest Version of Python ...
2017-09-08, 958👍, 0💬

'__init__()' Class Method to Initialize New Instance
What is the "__init__()" class method? The "__init__()" class method is a special method that will be automatically called, if you use the class name as a constructor to create a new instance of the class. Here are the rules you need to follow to define and use the "__init__()" class method: 1. Defi...
2018-01-27, 355👍, 0💬

'pass' - Do Nothing Statements
How to use the "pass" statement in Python code? The "pass" statement can be used as a place holder statement any where in Python code. When a "pass" statement is interpreted, Python will do nothing and continue with next statement. For example, the following Python code shows an empty function with ...
2017-09-12, 348👍, 0💬

What Is Wrapper Function
What is a wrapper function in Python? A wrapper function in Python is a function that takes an old function as input parameter and returns a new function. The new function should have the same parameter list and return type. If you call the new function, it will perform the same task as the old func...
2018-02-08, 338👍, 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, 338👍, 0💬

'continue' Statement in Repeating Statement Blocks
How to use the "continue" statement in a repeating statement block in Python code? The "continue" statement can be used in a repeating statement block like "for" and "while" loops to continue with the next looping item immediately. When a "continue" statement is interpreted, Python will skip the res...
2017-09-12, 325👍, 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, 324👍, 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, 324👍, 0💬

What Is Function
What Is Function in Python? A function, also called a method, in Python is a statement block waiting to be executed later with a function call expression. A function can have the following elements: Function name - A symbolic name that uniquely identifies this function within the context. Parameter ...
2017-09-12, 314👍, 0💬

Manage and Use Class Properties
How to manage and use class properties? Class properties, also called class attributes, are name value pairs associated with class "type" object, and shared among all instances (objects) created from this class. You can manage and use class properties in various places: 1. In the class definition st...
2018-01-27, 305👍, 0💬

Pass Function as Function Parameter
How to pass function objects as function parameters? You can pass function objects like any other types of objects as parameters of other functions. For example, >>> def x(): ... print("Hello world!") ... >>> def addVersion(f): ... f.version = "1.0" ... f.au...
2018-02-08, 301👍, 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 downl...
2018-04-12, 300👍, 0💬

Function Parameters Assigned with Object References
Is it true that all function parameters are assigned with object references in Python? Yes, all function parameters are assigned with object references in Python. You modify referenced data objects to share data with the calling statement. Here is a good example of modifying the data object referenc...
2018-02-08, 299👍, 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, 298👍, 0💬

Functions Are Objects Too
Are functions objects in Python? Yes, all functions are objects of "function" type in Python? You can verify this with the following Python code: >>> def x(): ... print("Hello world!") ... >>> type(x) <class 'function'> In other words, the "def...
2018-02-08, 296👍, 0💬

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, 285👍, 0💬

Statement Syntax and Execution Flow Control
Where to find tutorials on Python Statement Syntax and Execution Flow Control? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Python Statement Syntax and Execution Flow Control: Basic Structure of Python Code Multi-line Statements in Python Co...
2018-03-13, 283👍, 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, 282👍, 0💬

What Is Assignment Statement
What is Assignment Statement in Python? An Assignment Statement is associates a reference of a data object resulted from an expression to a variable or to an item in a list or dictionary. Assignment statement has the following syntax: variable = expression After the data object is assigned to a vari...
2018-03-13, 280👍, 0💬

'class' - Class Definition Statements
How to use the "class" statement to define a new function in Python? You can use the "class" statement to define a new class in Python with the following syntax: def class_name(base_class): class properties assignment statement ... method definition statement ... Here is a good example of "class" st...
2018-05-08, 277👍, 0💬

Create New Instances of a Class
How to Create a New Instance of a Class? There are two ways to create a new instance (object) of a class (or type): 1. The short way: Call the class name as the class constructor function with the following syntax. It will return an instance of the given class. >>> x = class_nam...
2018-01-27, 277👍, 0💬

What Is Class Method
What is class method in Python? Class methods are functions defined inside the class definition statement block. You can call to execute a class method in two formats: 1. Calling the method with the class name in the dot (.) expression format: class_name.method_name(...). For example, >&g...
2018-01-27, 275👍, 0💬

Where Are Class Properties Stored
Where Are Class Properties Stored? Class properties are stored in a built-in property called "__dict__" in class "type" object. The "__dict__" property is inherited from the base class "object" and managed by the Python engine. If you ever forget what class properties are associated with a class, yo...
2018-01-27, 268👍, 0💬

'def' - Function Definition Statements
How to use the "def" statement to define a new function in Python? You can use the "def" statement to define a new function in Python with the following syntax: def function_name(paramenter_list) :statement_block Here is a good example of "def" statement defining a function to generate Fibonacci ser...
2018-02-28, 265👍, 0💬

1 2 >   Sort: Date