Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
113 views

Chapter 1 - Python Introduction

This Python advanced course covers topics like classes, inheritance, modules, exception handling, threading, networking, XML, iterators, generators and extending Python. The course introduction discusses that Python is an interpreted scripting language with a clean syntax designed for readability and extensibility. Python code is portable across operating systems and can be used for tasks like rapid prototyping, web development, scientific applications and more. The instructor will not cover previous Python basics.

Uploaded by

Dana Țirigan
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views

Chapter 1 - Python Introduction

This Python advanced course covers topics like classes, inheritance, modules, exception handling, threading, networking, XML, iterators, generators and extending Python. The course introduction discusses that Python is an interpreted scripting language with a clean syntax designed for readability and extensibility. Python code is portable across operating systems and can be used for tasks like rapid prototyping, web development, scientific applications and more. The instructor will not cover previous Python basics.

Uploaded by

Dana Țirigan
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Python Advanced

Trainer: Marius Radulescu


ENEA ROMANIA
Octombrie 2016
Python Course – Main Chapters

1. Introduction (short) 7. Classes


2. Overview (short) 8. Class inheritance
3. Variable and types (short) 9. Modules
4. Expressions and statements 10. Exception Handling
(short) 11. Threading
5. Functions 12. Networking
6. File Handling (short) 13. XML

14. Python Iterators


15. Generators
16. Extending Python
0. Ice Breaking

• Who I am
• What I have done until now
• From how long I’m doing
• What kind of projects I have encountered
• What are the expectations I have from this course
• What will I learn from this course
• What will I NOT learn from this course
1. Python Introduction

1.1. What is Python


1.2. Design philosophy
1.3. Why Python?
1.4. Most obvious features
1.5. Productivity
1.6. What is used for
1.7. Python and OS Type
1.8. Online Python Documentation
1.1. What is Python

• Is a scripting language (interpreter) - no source


compilation is needed
• People think of scripting language as being easy to learn
and useful
• Python is a well worked out coherent dynamic
programming language
• Could be used for a wide range of applications
1.2. Design philosophy

• Python is a modular language


• Almost all functionality is written (available) in modules
• To make a functionality available the programmer must
import that functionality
• This makes:
– simple to use
– complex (variety of available modules)
– errors should never pass silently (enormous community of
Python programmers exists)
– if the implementation is hard to explain, it's a bad idea
– namespaces are a good idea
1.3. Why Python?

• Designed to be easy to learn and control


– clean, clear syntax
– very few keywords
• Highly portable
– runs almost anywhere - servers, workstations, Linux, Windows,
Apple Os, etc
– use machine independent byte-code (the same code works on
all operating systems)
• Extensible
– design to be extensible by adding new modules (even written in
other languages, like C/C++)
1.4. Most obvious features

• Clean syntax
– this leads to fast coding

• Uses white spaces to delimit blocks


– humans generally do, so why not the language?
– try it, you will end up like it

• variables do not need declarations


– language not based on built in types
1.5. Productivity

• Reduced development time


– code is shorter that C/C++ or Java

• Improve program maintenance


– code is extremely readable

• Less training
– language is very easy to learn
1.6. What is used for

• Rapid prototyping
• Web scripting
• Throw-away, ad-hoc programming
• Steering scientific applications
• Extension language
• XML processing
• Database applications
• GUI applications
• etc
1.7. Python and OS Type

• Linux:
– Already present on all major distributions (Debian, Fedora,
Ubuntu, etc)
– https://www.python.org/download

• Windows:
– Active State Python: http://www.activestate.com/activepython
– IronPython: http://ironpython.net/

• Mac OS (Apple OS):


– https://www.python.org/download/mac
1.8. Online Python Documentation

• there a lot of Python documentation available online:


– http://www.tutorialspoint.com/python/index.htm
– https://docs.python.org
– https://docs.python.org/2/tutorial/
– http://www.sthurlow.com/python/
– http://www.tutorialspoint.com/python/
– http://www.slideshare.net/narendra.sisodiya/python-presentation-
presentation

• there are a lot of examples and how-to explanations online


• there is also: http://stackoverflow.com/ :)

You might also like