 A readable, dynamic, pleasant,  flexible, fast and powerful language Introduction to Python.

Slides:



Advertisements
Similar presentations
Overview of programming in C C is a fast, efficient, flexible programming language Paradigm: C is procedural (like Fortran, Pascal), not object oriented.
Advertisements

CIT 590 Intro to Programming Lecture 1. By way of introduction … Arvind Bhusnurmath There are no bonus points for pronouncing my last name correctly Please.
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
Ruby The Gem of new programming languages. An interpreted scripting language.
Introduction to Python John Alexis Guerra Gómez CMSC433 Spring 2010 University of Maryland.
XP 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial 10.
Python Brandon Jeffcoat Dashaun West “Why settle for snake oil when you can have the whole snake?” -- From Usenet posting by Mark Jackson, June 1998.
Copyright 2009 Justin C. Klein Keane PHP Code Auditing Session 1 – PHP Foundations Justin C. Klein Keane
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
Jonathan Huelman CSC 415 – Programming Languages
Introduction to scripting
Introduction to Python (for C++ programmers). Background Information History – created in December 1989 by Guido van Rossum Interpreted Dynamically-typed.
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
Chair of Software Engineering Beyond Eiffel these slides contain advanced material and are optional.
An Introduction to PHP The University of Tennessee at Chattanooga C. Daniel Chase “An introduction to basic PHP use with a focus on the power of dynamic.
Introduction to Programming Professor Sprenkle September 10, 2007.
11/27/07. >>> Overview * objects * class * self * in-object methods * nice printing * privacy * property * static vs. dynamic * inheritance.
Generations of Programming Languages First generation  Machine Language Second Generation  Assembly Language Third Generation  Procedural language such.
The Python Language Petr Přikryl Part I Socrates IP, 15th June 2004 TU of Brno, FIT, Czech Republic.
Computer Science 111 Fundamentals of Programming I Overview of Programming.
Python 0 Some material adapted from Upenn cmpe391 slides and other sources.
Python: Classes By Matt Wufsus. Scopes and Namespaces A namespace is a mapping from names to objects. ◦Examples: the set of built-in names, such as the.
Introduction to PythonIntroduction to Python SPARCS `08 서우석 (pipoket) `09 Summer SP ARCS Seminar`09 Summer SP ARCS Seminar.
The Python Programming Language Jeff Myers Programming Language Concepts, 01/14/2002
CMPS 211 JavaScript Topic 1 JavaScript Syntax. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction.
1 JavaScript in Context. Server-Side Programming.
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
An Introduction to Python Blake Brogdon. What is Python?  Python is an interpreted, interactive, object-oriented programming language. (from python.org)
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Python. By Jawad. What Is Python? Python is an open-source object-orientated scripting language. Python is good for embedding snippets to run a program.
Copyright © 2010 Certification Partners, LLC -- All Rights Reserved Perl Specialist.
Python – May 11 Briefing Course overview Introduction to the language Lab.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
An Introduction. What is Python? Interpreted language Created by Guido Van Rossum – early 90s Named after Monty Python
Python Primer 1: Types and Operators © 2013 Goodrich, Tamassia, Goldwasser1Python Primer.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 1: Introduction.
CS105 Computer Programming PYTHON (based on CS 11 Python track: lecture 1, CALTECH)
Introduction to Python Origins Nature of Python Importance of Python Example.
Copyright © 2003 ProsoftTraining. All rights reserved. Perl Fundamentals.
RUBY by Ryan Chase.
PHP vs. Python. Similarities are interpreted, high level languages with dynamic typing are Open Source are supported by large developer communities are.
Overview of Python Eric Finkenbiner David J. Stucki.
By: Dan Andrei D. Leycano.  Simple and easy to learn  Python syntax have a readable structure  Python is flexible.
Introduction to Javascript. What is javascript?  The most popular web scripting language in the world  Used to produce rich thin client web applications.
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
Introduction to JavaScript academy.zariba.com 1. Lecture Content 1.What is JavaScript? 2.JavaScript Pros and Cons 3.The weird JavaScript stuff 4.Including.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
Programming Languages Concepts Chapter 1: Programming Languages Concepts Lecture # 4.
Python Programming Language by Vasu Chetty. Origins of Python Created by: Guido van Rossum, a Dutch Programmer Created during: Christmas Break, 1989 Created.
Javascript Prof. Wenwen Li School of Geographical Sciences and Urban Planning 5644 Coor Hall
Python Joseph Eckstrom, Benjamin Moore, Willis Kornegay.
CST 1101 Problem Solving Using Computers
JavaScript is a programming language designed for Web pages.
Introduction Python is an interpreted, object-oriented and high-level programming language, which is different from a compiled one like C/C++/Java. Its.
Intro To Pete Alonzi University of Virginia Library
Chapter 19 JavaScript.
Training on Real-time project With 100 % assistance support Training by IT professionals Trainers have 5+ years experience
Python Classes By Craig Pennell.
Statements, Comments & Simple Arithmetic
What Is a Program? A program is like an algorithm, but describes a process that is ready or can be made ready to run on a real computer Retrieved from:
Introduction to Python
Introduction to Python
Python Primer 1: Types and Operators
THE REAL WORLD APPLICATIONS OF PYTHON. INTRODUCTION Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum.
JavaScript Basics What is JavaScript?
Python Basics. Topics Features How does Python work Basic Features I/O in Python Operators Control Statements Function/Scope of variables OOP Concepts.
Introduction to Computer Science
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

 A readable, dynamic, pleasant,  flexible, fast and powerful language Introduction to Python

 Background  Syntax  Types / Operators / Control Flow  Functions  Classes  Tools Overview

 Multi-purpose (Web, GUI, Scripting, etc.)  Object Oriented  Interpreted  Strongly typed and Dynamically typed  Focus on readability and productivity What is Python

 Google  NASA  Library of Congress  the ONION  And many other companies Who Uses Python

 Created in 1989 by Guido Van Rossum  Python 1.0 released in 1994  Python 2.0 released in 2000  Python 3.0 released in 2008  Python 2.7 is the recommended version  3.4 is used nowadays Releases

Syntax

Hello World hello_world.py

Comments

Types

Strings

Numbers

Null

Lists

Lists

Booleans

Operators

Arithmetic

String Manipulation

Logical Comparison

Identity Comparison

Arithmetic Comparison

Control Flow

Conditionals

For Loop

Expanded For Loop

While Loop

 Useful for replacing simple for-loops. List Comprehensions

Functions

Basic Function

Function Arguments

Arbitrary Arguments

Fibonacci

Fibonacci Generator

Classes

Class Declaration

 Attributes assigned at class declaration should always be immutable Class Attributes

Class Methods

Class Instantiation & Attribute Access

Class Inheritance

 No interfaces  No real private attributes/functions  Private attributes start (but do not end) with double underscores.  Special class methods start and end with double underscores.  __init__, __doc__, __cmp__, __str__ Python’s Way

Imports

More Imports

Error Handling

Tools

 Django  Flask  Pylons  TurboGears  Zope  Grok Web Frameworks

 Emacs  Vim  Komodo  PyCharm  Eclipse (PyDev) IDEs

   Resources

The End