‘And Now For Something Completely Different’ Python Programming David Hartwell Clements.

Slides:



Advertisements
Similar presentations
Python Whats in a name? Snake logos and mascot notwithstanding, its named after Monty Pythons Flying Circus Humor-impaired can safely.
Advertisements

Programming Paradigms Introduction. 6/15/2005 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L1:
Python Henry Armstrong Andy Burras Everett Hite. History First released in 1991 by Guido van Rossum Designed around a philosophy which emphasized readability.
Unix Continuum of Tools Do something once: use the command line Do something many times: –Use an alias –Use a shell script Do something that is complex.
Python By Steve Wright. What is Python? Simple, powerful, GP scripting language Simple, powerful, GP scripting language Object oriented Object oriented.
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.
Look Ma, No types Prasan Samtani
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.
Introduction to Python. Outline Python IS ……. History Installation Data Structures Flow of Control Functions Modules References.
Scripting Languages CS351 – Programming Paradigms.
Jonathan Huelman CSC 415 – Programming Languages
The Python Programming Language Matt Campbell | Steve Losh.
Class 24: Programming with Objects University of Virginia cs1120 David Evans.
Python Introduction.
Programming 101 with Python: an open-source, cross-platform, and fun language By J. Burton Browning, Ed.D. Copyright © J. Burton Browning All rights reserved.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 18 Topics: Intro to HTML/CSS: Questions? Summer Work Letter.
CS 355 – Programming Languages
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
There are only 10 types of people in the world, those who understand binary and those who don't.
April 2005CSA2050:NLTK1 CSA2050: Introduction to Computational Linguistics NLTK.
Intro to Python Programming (Introduction) Pamela A. Moore Zenia C. Bahorski Eastern Michigan University March 7, 2012 A language to swear by, not at.
Programming languages1 Programming paradigms Families of programming languages.
Chapter 1. Introduction.
BIT 1003 – Presentation 7. Contents GENERATIONS OF LANGUAGES COMPILERS AND INTERPRETERS VIRTUAL MACHINES OBJECT-ORIENTED PROGRAMMING SCRIPTING LANGUAGES.
Python Guido van Rossum Sung-Jin Hong SPARCS
CSCI/CMPE 4341 Topic: Programming in Python Chapter 1: Introduction to Python Xiang Lian The University of Texas – Pan American Edinburg, TX 78539
1 Python CIS*2450 Advanced Programming Concepts Material for this lecture was developed by Dr. D. Calvert.
PYTHON. Python is a high-level, interpreted, interactive and object- oriented scripting language. Python was designed to be highly readable which uses.
The Python Programming Language Jeff Myers Programming Language Concepts, 01/14/2002
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
The First Pune Python meet organized by PythonThreads.com The First Pune Python meet organized by PythonThreads.com What is it? Python is a Free, Open.
Python – Part 1 Python Programming Language 1. What is Python? High-level language Interpreted – easy to test and use interactively Object-oriented Open-source.
Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages.
Copyright © 2007 Addison-Wesley. All rights reserved.1-1 Reasons for Studying Concepts of Programming Languages Increased ability to express ideas Improved.
Ruby. Quick History Name chosen because it was the birthstone of the colleage of the creator Yukihiro Matsumoto First public release Dec Created.
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.
1 Topics Covers everything –1) in slides –2) from the very beginning. Language classification, history, and comparison Programming paradigms –Structured.
Executed by: Prokhorov N. Baybikov I. BI-01. Contents 1. Description 1. About Python 2.Origin 2. Properties 3. Pros & Cons 4. Usage 5. Conclusion.
Intro to Python Adriane Huber Debbie Bartlett Python Lab #1Python Lab #1 1.
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
Intro to Python Programming (Part 1) Pamela Moore Zenia Bahorski Eastern Michigan University March 16, 2011 A language to swear by, not at.
By: Ben Hester. What is Python Powerful Dynamic Programming Language Uses Whitespace Everything Is A Object Very Portable.
Python for: Data Science. Python  Python is an open source scripting language.  Developed by Guido Van Rossum in late 1980s  Named after Monty Python.
Software Development. Software Development Loop Design  Programmers need a solid foundation before they start coding anything  Understand the task.
Python Basics Tom LeFebvre. Sept , 2002Python Basics2 Python Language Very High-Level Language Scripting Language (no compiling) Simple syntax Easy.
 Programming - the process of creating computer programs.
Overview of Python Eric Finkenbiner David J. Stucki.
8/2/07. >>> About Me Scott Shawcroft * Junior * Computer Engineering * Third Quarter TA * Creative Commons Intern * Small-time Open Source Developer
Winter 2016CISC101 - Prof. McLeod1 Today Go over the Python disassembly “experiment” again. Code interpretation vs. code compilation. History and features.
Fun Fact: Python is not named for the snake Rather, it is named for Monty Python’s Flying Circus.
Python Programming Language by Vasu Chetty. Origins of Python Created by: Guido van Rossum, a Dutch Programmer Created during: Christmas Break, 1989 Created.
HIGH-LEVEL LANGUAGE PROGRAMMING PARADIGMS. Programming languages come in many forms or 'paradigms'. Each form of language offers advantages over other.
Python Joseph Eckstrom, Benjamin Moore, Willis Kornegay.
CSCE 343 – Programming Language Concepts Welcome!.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
IT IS THE HELP GUIDE FOR BEGINNERS WHO ARE CONFUSE THAT WHY THEY SHOULD CHOOSE PYTHON BY SOFTCRAYONS. Why Python Is Good carrier Choice.
PYTHON PROGRAMMING LANGUAGE.
Chapter 1. Introduction.
Programming For Big Data
Scope History of Ruby. Where can you use Ruby? General Features.
Introduction to Python
Training on Real-time project With 100 % assistance support Training by IT professionals Trainers have 5+ years experience
1 Python Lab #1 Intro to Python Adriane Huber Debbie Bartlett.
Do you know this browser?...
Chapter 1: Programming Basics, Python History and Program Components
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
Presentation transcript:

‘And Now For Something Completely Different’ Python Programming David Hartwell Clements

6 December 2000Copyright © 2000 David Hartwell Clements, See Notes for Details 2 History of the Snake c Guido van Rossum created Python as a descendant to ABC that would appeal to UNIX/C hackers. Named after Monty Python’s Flying Circus. Python “bridges the gap” between system and scripting languages.

6 December 2000Copyright © 2000 David Hartwell Clements, See Notes for Details 3 Languages/Paradigms Studied in MACS400 Prolog –Logical C/C++ –Iterative Java – Object Oriented LISP (Lots of Insanely Stupid Parentheses) –Functional

6 December 2000Copyright © 2000 David Hartwell Clements, See Notes for Details 4 So What is Python? “Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.” Python is flexible, powerful, and extremely easy to use. Python is 100% Open Source. Python has elements of Functional, Iterative, and Object Oriented Paradigms.

6 December 2000Copyright © 2000 David Hartwell Clements, See Notes for Details 5 Advantages Short Code –3 to 5 times shorter than Java! –5 to 10 times shorter than C++! Extensible using C ‘Executable Pseudocode’ Rapid Prototyping Heavily Cross-Platform (Un*x, MacOS, &c.) Object Oriented

6 December 2000Copyright © 2000 David Hartwell Clements, See Notes for Details 6 Object Orientation, “Done Right” Full, Non-Mandated, Support Classes Inheritance and Multiple Inheritance Virtual Methods (pure and otherwise) Operator Overloading

6 December 2000Copyright © 2000 David Hartwell Clements, See Notes for Details 7 An Iterative Example answer = ‘’ //default it out while answer != “yellow”: name = raw_input(“What is your name? ”) quest = raw_input(“What is your quest? ”) answer = raw_input(“What is your favorite color? ”) if answer != “yellow”: print “Auuuuuuuuugh” print “Right. Off you go.”

6 December 2000Copyright © 2000 David Hartwell Clements, See Notes for Details 8 A Functional Example import shrubbery #This is how we include def function1(x,y): return x * y function2 = lambda x, y: x + y #in-line comments print apply( function1, (3, 5) ) for y in map( function2, (2,3,5), (7,11,13) ): print y

6 December 2000Copyright © 2000 David Hartwell Clements, See Notes for Details 9 An Object Oriented Example class Snake: … class Python( Snake ): def __add__( self, other ): self.hunt( other ) … def hunt( target ): … MyPython, MyAsp = Python(), Snake()

6 December 2000Copyright © 2000 David Hartwell Clements, See Notes for Details 10 Getting More Information Any O’Reilly (Animal) book, particularly Programming Python (python on the cover) and Learning Python (rat on the cover).