Tools, FAQ, Tutorials:
What Is Assignment Statement
What is Assignment Statement in Python?
✍: FYIcenter.com
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 variable, the data object can referenced using the variable name.
For example, the following assignment statement defines variable "x" to be a reference to the "float" object created from the 3.14159 literal.
>>> x = 3.14159 >>> x 3.14159
The following assignment statement defines variable "y" to be a reference to the "float" object created from the expression 3.14159.
>>> y = 3.14159 * 2 >>> y 6.28318
⇒ Statement Syntax and Execution Flow Control
2018-03-13, 1431🔥, 0💬
Popular Posts:
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How to use the "set-variable" Policy Statement to create custom variables for an Azure API service o...
How to Instantiate Chaincode on BYFN Channel? You can follow this tutorial to Instantiate Chaincode ...
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? The "rewrite-uri" ...
How to install .NET Framework in Visual Studio Community 2017? I have the Visual Studio Installer in...