The Python Interpreter command line You use this to write Python code directly into the command line Using the Python Interpreter Opening the command line Start > All Apps > Python 3.7 > Python 3.7 (64 bit) Closing the command line CTRL+Z or you can type “quit()”
All posts by
.Random
Random integer Select random entry from a List
Date And Time
DateTime now Get in UTC format Get DateTime elements
.Modules general
“Modules “, “libraries” and “packages” are common terms for modules in python (a package is really a directory that holds a collection of modules). A module is a collection of Python declarations intended broadly to be used as a tool. Use a module in a file
Comma Separated Strings
Convert Comma Separated String To List Note, when you split a string on a character that it also ends with, you’ll end up with an empty string at the end of the list. Convert List into comma separated string
Python coding
Multi-line instructions Use the \ character
Python differences to C
Increment & Decrement
Using Strings-Formatting
Trim leading and trailing whitespace Capitalise 1st letter of first word String to lowercase String to uppercase
Range
For loop using a Range