Introduction to Python Damian Gordon. The Python Programming Language Python was developed by Guido van Rossum in the Netherlands in 1989. Van Rossum.

Slides:



Advertisements
Similar presentations
Python Hyunjong Lee. contents  Introduction  Syntax & data types  Tools  Python as CGI.
Advertisements

Introduction to 3DS Max for Game 1 Matakuliah : T0952 – Multimedia 3D Modelling and Animation Tahun: 2009.
Flow Charting, Structured English and PseudoCode
Python Henry Armstrong Andy Burras Everett Hite. History First released in 1991 by Guido van Rossum Designed around a philosophy which emphasized readability.
Look Ma, No types Prasan Samtani
Introduction to Python. Outline Python IS ……. History Installation Data Structures Flow of Control Functions Modules References.
Python Jordan Miller and Lauren Winkleman CS 311 Fall 2011.
Jonathan Huelman CSC 415 – Programming Languages
Python Introduction.
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
Intro to Python Programming (Introduction) Pamela A. Moore Zenia C. Bahorski Eastern Michigan University March 7, 2012 A language to swear by, not at.
SI 2007 Game Programming Presented by: Xiaojing Wu, Greg Condit, Shawn Wang, Jeff Graetz, Richard Georgeoff, Dom Labanowski The Panda Squad Led By: Pete.
The Python Language Petr Přikryl Part I Socrates IP, 15th June 2004 TU of Brno, FIT, Czech Republic.
Python: Modularisation Damian Gordon. Modularisation Remember the prime checker program:
Computer Science 111 Fundamentals of Programming I Overview of Programming.
Python 0 Some material adapted from Upenn cmpe391 slides and other sources.
Ruby! Ronald L. Ramos. What is Ruby? Ruby is a scripting language designed by Yukihiro Matsumoto, also known as Matz. It runs on a variety of platforms,
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.
A very basic overview of Server-Side Scripting Or what is PHP, Perl, Python, Ruby and what can they do for me?
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.
C# Language Panithan Chandrapatya Agenda C# History C# Goals C# Fixes C# Contribution C# Features C# Success C# Example.
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.
Python. History of python  Python was conceived in the late 1980s and its implementation was started in December 1989 by Guido van Rossum at CWI in the.
Modularisation Damian Gordon. Modularisation Let’s imagine we had code as follows:
Python Basics. 2 Python History Late 1970s: programming language called ABC at the Centrum voor Wiskunde en Informatica in the Netherlands Audience included.
By: Ben Hester. What is Python Powerful Dynamic Programming Language Uses Whitespace Everything Is A Object Very Portable.
Introduction to Python Origins Nature of Python Importance of Python Example.
Python for: Data Science. Python  Python is an open source scripting language.  Developed by Guido Van Rossum in late 1980s  Named after Monty Python.
CSC 1010 Programming for All Lecture 2 Introduction to Python Some material based on material from Marty Stepp, Instructor, University of Washington.
Head First Python: Ch 1. Everyone loves lists Aug 22, 2013 Hee-gook Jun.
8 January 2016Birkbeck College, U. London1 Introduction to Programming Lecturer: Steve Maybank Department of Computer Science and Information Systems
Overview of Python Eric Finkenbiner David J. Stucki.
Python  Monty or Snake?. Monty?  Spam, spam, spam and eggs  Dead parrots  Eric Idle, John Cleese, Michael Palin, etc.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Prime Numbers Damian Gordon. Prime Numbers So let’s say we want to express the following algorithm: – Read in a number and check if it’s a prime number.
Python: Structured Programming Damian Gordon. Structured Programming Remember the modularised version of the prime number checking program:
Python: Iteration Damian Gordon. Python: Iteration We’ll consider four ways to do iteration: – The WHILE loop – The FOR loop – The DO loop – The LOOP.
Python Programming Language by Vasu Chetty. Origins of Python Created by: Guido van Rossum, a Dutch Programmer Created during: Christmas Break, 1989 Created.
Introducing Python 3 Introduction to Python. Introduction to Python L1 Introducing Python 3 Learning Objectives Know what Python is and some of the applications.
Python Joseph Eckstrom, Benjamin Moore, Willis Kornegay.
Introduction to Python Damian Gordon e:
5. Algorithm 1: Variables, Operators, Sequences 1.
Introduction to Programming
Fundamentals of Programming I Overview of Programming
Python Programming Unit -1.
Introduction to Python
Whatcha doin'? Aims: To start using Python. To understand loops.
NOCTI Study Guide #2.
A team of well-educated clowns
Introduction Python is an interpreted, object-oriented and high-level programming language, which is different from a compiled one like C/C++/Java. Its.
Object-Orientated Programming
Introduction to Programming
Introduction to Python
Do you know this browser?...
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
CSC1018F: Intermediate Python
Python: Algorithms Damian Gordon.
Introduction to programming with Python
Introduction to Programming
Introduction to Programming with Python
THE REAL WORLD APPLICATIONS OF PYTHON. INTRODUCTION Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum.
Structured Programming
Some Common Issues: Common Algorithms
Introduction to Computer Science
PYTHON - VARIABLES AND OPERATORS
Introduction to Python
Presentation transcript:

Introduction to Python Damian Gordon

The Python Programming Language Python was developed by Guido van Rossum in the Netherlands in Van Rossum is Python's principal author, and his continuing central role in deciding the direction of Python is reflected in the title given to him by the Python community, Benevolent Dictator for Life (BDFL).

The Python Programming Language Python is named for the British comedy group Monty Python. The main members of the group are Eric Idle, Terry Jones, John Cleese, Michael Palin, Graham Chapman, and Terry Gilliam.

The Python Programming Language 2000 Ver Ver Ver 1

The Python Programming Language Python is a multi-paradigm programming language: – structured programming – object-oriented programming – functional programming – aspect-oriented programming – design by contract – logic programming

The Python Programming Language Python uses dynamic typing and a combination of reference counting and a cycle-detecting garbage collector for memory management. An important feature of Python is dynamic name resolution (late binding), which binds method and variable names during program execution.

The Python Programming Language Rather than requiring all desired functionality to be built into the language's core, Python was designed to be highly extensible. Python can also be embedded in existing applications that need a programmable interface. This design of a small core language with a large standard library and an easily extensible interpreter was intended by Van Rossum from the very start

The Python Programming Language Since 2003, Python has consistently ranked in the top ten most popular programming languages as measured by the TIOBE Programming Community Index. As of September 2015, it is in the fifth position. It was ranked as Programming Language of the Year for the year 2007 and 2010.

What does Python look like?

# PROGRAM CheckPrime: ################## # ERROR CHECKING # ################## c = str(input("Do you want error checking on? (y/n)")) if c == 'y': # THEN MyErrorCheck = True else: MyErrorCheck = False # ENDIF; ################## # PRIME CHECKING # ################## a = int(input("Please input value:")) b = a - 1 IsPrime = True Part 1 of 3

while b != 1: # DO if a % b == 0: # THEN IsPrime = False if MyErrorCheck == True: # THEN print("*** Division with no remainder found, with ", b, "*****”) # ENDIF; if MyErrorCheck == True: # THEN print(">> a is ",a,">> b is ",b, ">> IsPrime is ",IsPrime) # ENDIF; b = b - 1 # ENDWHILE; Part 2 of 3

if IsPrime: # THEN print(a, "is a prime number") else: print(a, "is not a prime number") # ENDIF; # END. Part 3 of 3

The Python Programming Language Organizations that use Python include Google, Yahoo!, CERN, and NASA. Python can serve as a scripting language for web applications Python has been embedded in a number of software products as a scripting language, including in finite element method software such as Abaqus, 3D parametric modeler like FreeCAD, 3D animation packages such as 3ds Max, Blender, Cinema 4D, Lightwave, Houdini, Maya, modo, MotionBuilder, Softimage, the visual effects compositor Nuke, 2D imaging programs like GIMP, Inkscape, Scribus and Paint Shop Pro, and musical notation program or scorewriter capella.

IDLE

etc.