< 1 2 3 >   Sort: Rank

Python Built-in Structured Data Types
Python Built-in Structured Data Types? Python Built-in Structured Data Types are data types provided by the Python interpreter to represent structures of data values: Here is a list of commonly used Python Built-in Structured Data Types: "str" - String data type for sequences of Unicode characters, ...
2018-04-07, 289👍, 0💬

'list' Literals and Conversions
How to specify "list" values in Python code? "list" values can be specified using "list" literals or the list() conversion function as shown in this tutorial: 1. "list" literals in [v1, v2, ...] format as shown below: &gt;&gt;&gt; ["Age", 25] ['Age', 25] &gt;&gt;&gt; ["Age", ...
2018-04-07, 286👍, 0💬

'bytes' Literals and Conversions
How to specify "bytes" values in Python code? "bytes" values can be specified using "bytes" literals or the bytes() conversion function as shown in this tutorial: 1. "bytes" literals in b'...' or b"..." format as shown below: &gt;&gt;&gt; b'FYIcenter.com' b'FYIcenter.com' &gt;&gt...
2018-04-07, 279👍, 0💬

'str' Literals and Conversions
How to specify "str" values in Python code? "str" values can be specified using "str" literals or the str() conversion function as shown in this tutorial: 1. "str" literals in double quotes as shown below: &gt;&gt;&gt; "FYIcenter.com" 'FYIcenter.com' &gt;&gt;&gt; "He says: \"...
2018-04-07, 278👍, 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, 317👍, 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, 313👍, 0💬

What Is Variable
What is variable in Python? A variable is symbolic name that can be assigned with a reference link to a data object resulted from an expression. In Python, variables are not declared specifically for any data type. They can be used without declaration statements. For example, the following assignmen...
2018-03-13, 291👍, 0💬

What Is Expression
What Is an expression in Python? An expression in Python is a sequence of operations or method calls applied on data objects. An expression has two impacts when executed: Code statements of invoked methods get executed. This may create new data objects, update existing data objects, consume resource...
2018-03-13, 287👍, 0💬

Evaluation of Expressions
How expressions are evaluated in Python? Expressions are evaluated in Python based on precedence of each operation list below: Operator Description -------- ----------- (expressions...), [expressions...], {key: value...}, {expressions...} Binding or tuple display, list display, dictionary display, s...
2018-03-13, 264👍, 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, 392👍, 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, 392👍, 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, 306👍, 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, 306👍, 0💬

'return' Statement in Function Statement Block
How to use the "return" statement in a function statement block in Python? The "return" statement can be used in a function statement block to terminate the execution of the function and return a data object to the calling expression. Here is a good example of "return" statement used in a function s...
2018-02-28, 271👍, 0💬

'return' Statement in Function Statement Block
How to use the "return" statement in a function statement block in Python? The "return" statement can be used in a function statement block to terminate the execution of the function and return a data object to the calling expression. Here is a good example of "return" statement used in a function s...
2018-02-28, 271👍, 0💬

'break' Statement in Repeating Statement Blocks
How to use the "break" statement in a repeating statement block in Python code? The "break" statement can be used in a repeating statement block like "for" and "while" loops to terminate the loop immediately. When a "break" statement is interpreted, Python will terminate execution of the nearest "fo...
2018-02-28, 270👍, 0💬

'break' Statement in Repeating Statement Blocks
How to use the "break" statement in a repeating statement block in Python code? The "break" statement can be used in a repeating statement block like "for" and "while" loops to terminate the loop immediately. When a "break" statement is interpreted, Python will terminate execution of the nearest "fo...
2018-02-28, 270👍, 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(...
2018-02-28, 267👍, 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(...
2018-02-28, 267👍, 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, 382👍, 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, &gt;&gt;&gt; def x(): ... print("Hello world!") ... &gt;&gt;&gt; def addVersion(f): ... f.version = "1.0" ... f.au...
2018-02-08, 346👍, 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: &gt;&gt;&gt; def x(): ... print("Hello world!") ... &gt;&gt;&gt; type(x) &lt;class 'function'&gt; In other words, the "def...
2018-02-08, 335👍, 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, 324👍, 0💬

'__dict__' Dictionary in Function Object
What is the "__dict__" dictionary property in a function object? By default every function object has "__dict__" built-in dictionary property. Each name value pair in this dictionary becomes a formal property of the function object accessible using the "." operation. It is empty when the function ob...
2018-02-08, 275👍, 0💬

< 1 2 3 >   Sort: Rank