Tools, FAQ, Tutorials:
What Is Python Interactive Mode
What Is Python Interactive Mode?
✍: FYIcenter.com
Python Interactive Mode allows you to use Python
as an interpreted language.
When running in interactive mode, Python will:
Here is sample session of running Python in interactive mode:
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> 1 / 2
0.5
>>> 2 ** 3
8
>>> 17 / 3
5.666666666666667
>>>
>>> numbers = [2, 4, 6, 8]
>>> product = 1
>>> for number in numbers:
... product = product * number
...
>>> print('The product is:', product)
The product is: 384
⇒ Start Python in Interactive Mode
⇐ Using Python in Interactive Mode
2018-04-12, ∼3213🔥, 0💬
Popular Posts:
How to dump (or encode, serialize) a Python object into a JSON string using json.dumps()? The json.d...
How to convert a JSON text string to an XML document with PHP language? Currently, there is no built...
How to use the API operation 2017 version setting "Rewrite URL template"? The API operation setting ...
What are the differences of Differences of evaluateTransaction() and submitTransaction() of the fabr...
What's Wrong with "while ($c=fgetc($f)) {}" in PHP? If you are using "while ($c=fgetc($f)) {}" to lo...