Python Intro 2021OFE
Python Intro 2021OFE
Introduction
Running Python
Python Programming
Variables
Types
Arithmetic operators
Boolean logic
Strings
Printing
Exercises
What is python?
Everything is an object
Modules, classes, functions
Exception handling
Dynamic typing, polymorphism
Static scoping
Operator overloading
Indentation for block structure
High-level data types
Introduction
Running Python
Python Programming
Data types
Control flows
Classes, functions, modules
Hands-on Exercises
Access Python from ECU
remoteaccess.ecu.edu
https://ecu.teamdynamix.com/TDClient/1409/Portal/KB
/ArticleDet?ID=67605
Python as a calculator
You can find the type of a variable using type(). For example type type(x).
Casting types
vs
13 49
Comparison operators
False
Logical operators
True True
Another example
Comma
separated
Curly brackets
Dictionary properties
Python Homepage
• http://www.python.org
Python Tutorial
• http://docs.python.org/tutorial/
Python Documentation
• http://www.python.org/doc
Python Library References
http://docs.python.org/release/2.5.2/lib/lib.html