Python Tutorial 3: Modules, Classes & OOP

Posted 2 CommentsPosted in Code, Python

This Python tutorial covers Python modules, classes and object-oriented programming principles. This includes: Modules: The Big Picture Module Import Syntax Packages Inheritance Classes Exceptions   Modules In Python a Module is the highest-level program organization unit, modules correspond to Python program files. Each file is a module, and modules import other modules to use the […]

Python Tutorial 2: Statements, Syntax & Functions

Posted Leave a commentPosted in Code, Python

This Python tutorial covers basic Python statements, syntax and functions. This includes: Introducing Python Statements Assignment, Expressions and print if Tests while and for loops Function Basics Scope Advanced Function Topics   Print We have already encountered this statement before; it is used simply to display objects. >>> print ‘hello’ hello >>> print 4 4 […]