Intro to Python Programming (Introduction) Pamela A. Moore Zenia C. Bahorski Eastern Michigan University March 7, 2012 A language to swear by, not at.

Slides:



Advertisements
Similar presentations
EIONET Training Beginners Zope Course Miruna Bădescu Finsiel Romania Copenhagen, 27 October 2003.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Be more productive. Windows 8 helps you get more done in less time.
COM vs. CORBA.
How to enter the world of Python Programming for ArcGIS Or, a funny thing happened on the way from an ESRI conference By Katherine Paybins WVAGP Membership.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Java.  Java is an object-oriented programming language.  Java is important to us because Android programming uses Java.  However, Java is much more.
‘And Now For Something Completely Different’ Python Programming David Hartwell Clements.
How to install the Zelle graphics package
Jonathan Huelman CSC 415 – Programming Languages
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
Python for S60 SmartPhones PostPC Workshop Fall 2006 Amnon Dekel.
Python Introduction.
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
1 Modular Software/ Component Software 2 Modular Software Code developed in modules. Modules can then be linked together to produce finished product/program.
Sikuli Ivailo Dinkov QA Engineer PhoneX Team Telerik QA Academy.
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
Topics Introduction Hardware and Software How Computers Store Data
High thoughts must have high language. Aristophanes
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
April 2005CSA2050:NLTK1 CSA2050: Introduction to Computational Linguistics NLTK.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction to Computer Science.
STATUS UPDATE EM SUBCOMMITTEE Friedrich Roth, EM subcommittee chairman SEG 2012, Las Vegas Technical Standards Committee meeting.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
The Python Language Petr Přikryl Part I Socrates IP, 15th June 2004 TU of Brno, FIT, Czech Republic.
CHAPTER FOUR COMPUTER SOFTWARE.
Python 0 Some material adapted from Upenn cmpe391 slides and other sources.
Introduction to Interactive Media Interactive Media Tools: Software.
Programming language A programming language is an artificial language designed to communicate instructions to a machine,languageinstructionsmachine particularly.
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
Python – Part 1 Python Programming Language 1. What is Python? High-level language Interpreted – easy to test and use interactively Object-oriented Open-source.
Python From the book “Think Python”
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.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
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.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
Chapter 5 Information Systems in Business Software
Intro to Python Programming (Part 1) Pamela Moore Zenia Bahorski Eastern Michigan University March 16, 2011 A language to swear by, not at.
10/8: Software What is software? –Types of software System software: Operating systems Applications Creating software –Evolution of software development.
Computing System Fundamentals 3.1 Language Translators.
ECET – Dynamic Programming with Python Spring 2013 Lecture L1 – Introduction to Python Page 1 Welcome! This is Professor Jai P. Agrawal. I will walk.
 Programming - the process of creating computer programs.
Overview of Python Eric Finkenbiner David J. Stucki.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Document Name CONFIDENTIAL Version Control Version No.DateType of ChangesOwner/ Author Date of Review/Expiry The information contained in this document.
Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
MET4750 Techniques for Earth System Modeling MET 5990 Techniques for Earth System Modeling and Research (
Chapter 2 Operating Systems
Architecture Review 10/11/2004
Python Programming Unit -1.
Development Environment
MET4750 Techniques for Earth System Modeling
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Introduction to .NET Framework Ch2 – Deitel’s Book
PHP / MySQL Introduction
Developing applications using Chromium
Chapter 4 Computer Software.
SVTRAININGS. SVTRAININGS Python Overview  Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed.
Do you know this browser?...
How to enter the world of Python Programming for ArcGIS
Introduction to Python
Chapter 2: The Linux System Part 1
Use of Python Scripts to Compare and Contrast Photo Images
Eagle: Maturation and Evolution
12th Computer Science – Unit 5
Chapter 1: Programming Basics, Python History and Program Components
FEATURES OF PYTHON.
Presentation transcript:

Intro to Python Programming (Introduction) Pamela A. Moore Zenia C. Bahorski Eastern Michigan University March 7, 2012 A language to swear by, not at. 1

Intro to Python Programming Abstract… One of the new programming languages sweeping both education and practice is Python. This language is very intuitive while still being quite powerful. Python would be the perfect vehicle to teach programming in the secondary school before tackling Java. It has the added advantage of being freely available for both Mac and PC platforms. This session will instruct participants in how to create Python programs that can be used for general programming and scripting. Participants will receive a flash drive with all needed files pre-loaded. The course presupposes no familiarity with programming, but it would be helpful

Topics Covered in Part 1 History of Python “What is” Python? Python License Agreement Where to Get Python How to Install Python How to Program in Python 3

History of Python Guido van Rossum (History at: ◦ Began as a Christmas break “hobby” in 1989  Chose the name Python after the BBC comedy troupe Monty Python’s Flying Circus.  Inspiration: ABC, Modula-3, with a smattering of C  Van Rossum helped create ABC, a teaching language, in the early 1980’s (Foreword for “Programming Python” para. 4). ◦ Feb. 1990: First version distributed while at CWI ◦ 1995: Corporation for National Research Initiatives, Reston, Virginia ◦ May 2000: van Rossum and development team moved to BeOpen.com (PythonLabs team) ◦ October 2000: PythonLabs team moved to Digital Creations (now Zope Corporation) ◦ Now: at Google.com All versions were Open Source Latest versions: & 3.2 (flash drives) Visualization of Python Project (contributors): ◦ 4

What is Python? Python.org “Executive Summary”: ◦ Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. ◦ Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. ◦ Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. ◦ Python supports modules and packages, which encourages program modularity and code reuse. ◦ The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed. ◦ 5

What is Python? Some of its key distinguishing features include: ◦ very clear, readable syntax ◦ strong introspection capabilities ◦ intuitive object orientation ◦ natural expression of procedural code ◦ full modularity, supporting hierarchical packages ◦ exception-based error handling ◦ very high level dynamic data types ◦ extensive standard libraries and third party modules for virtually every task ◦ extensions and modules easily written in C, C++ (or Java for Jython, or.NET languages for IronPython) ◦ embeddable within applications as a scripting interface 6

What is Python? Operating Systems: ◦ Windows ◦ Linux/Unix ◦ OS/2 ◦ Mac ◦ Amiga ◦ among others. ◦ There are even versions that run on .NET.  Java virtual machine  Nokia Series 60 cell phones 7

Python License Agreement FREE and Open Source! This LICENSE AGREEMENT is between the Python Software Foundation (“PSF”), and the Individual or Organization (“Licensee”) accessing and otherwise using Python software in source or binary form and its associated documentation. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF’s License Agreement and PSF’s notice of copyright, i.e., “Copyright © Python Software Foundation; All Rights Reserved” are retained in Python alone or in any derivative version prepared by Licensee. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python

Where to Get Python Python or Python ◦ Both are “considered stable” ◦ Macs & those writing 3 rd party software use (compatibility issues!) ◦ All library updates will happen to 3.x ◦ BUT >>> PC version of Python >> You need to be familiar with paths! >>> Alternative >> ◦ (See next page) 9

How to Install Python Great, FAST, Installation instructions at: ◦ 6/03/14/python-on-xp-7-minutes-to-hello- world/ ◦ Gives great directions and link to: ActiveState: ActiveState: ◦ nloads 10

How to Install Python We downloaded the program file to the flash drive (from ActiveState) Double-click on the filename will automatically start the install wizard ◦ Keep clicking next for default install until done ◦ Install is complete 11

How to Install Python Where did Python go? ◦ Start >> ◦ All Programs >> ◦ ActiveState ActivePython 2.7 (32 bit) >> ◦ IDLE (Python GUI) You are Ready to speak “Parseltongue” 12

How to Program in Python On to Programming in Python… 13