Python Language Reference

Published on Thursday, 14 November 2019

Install

After install, to verify,

"import this" | python

This works on Powershell / pwsh as well.

How do I return multiple values from a function? ref: so

Typing “python” on Windows 10 (version 1903) command prompt opens Microsoft store ref so

Program to find python version

Example below,

import sys
print (sys.version) #parentheses necessary in python 3. 
print (sys.version_info)
print (sys.hexversion)

IDLE Editor

How to quit,

quit()
exit()

How to print something

print(“string”)

run a script

execfile()