-
A programming language with strong similarities to PERL, but with powerful typing and object oriented features.
Python
-
Commonly used for producing HTML content on websites. Great for text files. Useful built-in types (lists, dictionaries). Clean syntax, powerful extensions.
Python
-
Familiar syntax with other game engine languages. Productivity and readable code. "Life's better without braces" -Bruce Eckel
Python
-
Natural Language ToolKit. Ease of use; interpreter. Extensively used for scientific programming.
Python
-
_______'s built-in datatypes for strings, lists, and more. Java or C++ require the use of special classes for this.
Python
-
________ has strong numeric processing capabilities: matrix operations, etc. Suitable for probability and machine learning code.
Python
-
Meaningful in Python: especially indentation and placement of newlines.
Whitespace
-
Use a newline to end a line of code.Use when must go to next line prematurely. No braces { } to mark blocks of code in Python... Use consistent indentation instead. The first line with a new indentation is considered outside of the block. Often a colon appears at the start of a new block.
Whitespace
-
Start comments with # – the rest of line is ignored. Can include a "documentation string" as the first line of any new function or class that you define. The development environment, debugger, and other tools use it: it"s good style to include one.
Comment (Python)
-
Python determines the data types in a program automatically.
Dynamic Typing
-
Python's not casual about types, it enforces data types after it figures them out.
Strong Typing
-
(T/F) In Python, names are case sensitive and cannot start with a number. They can contain letters, numbers, and underscores.
-
Great for learning the language. Great for experimenting with the library. Great for testing your own modules. Two variations: IDLE (GUI), python (command line)
Interactive Shell
-
Python knows a number of compound data types, used to group together other values. The most versatile is the ____, which can be written as a list of comma-separated values (items) between square brackets.
list
|
|