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.

Slides:



Advertisements
Similar presentations
J2EE training: 1 Course Material Usage Rules PowerPoint slides for use only in full-semester, for-credit courses at degree-granting.
Advertisements

Customisation The GUI in most GIS applications is sufficient for most needs. However, situations arise where you want either to: –Modify the interface,
MC697 Object-Oriented Programming Using Java. In this class, we will cover: How the class will be structured Difference between object-oriented programming.
Introduction to Python Programming Languages Fall 2002 Adapted from Tutorial by Mark Hammond Skippi-Net, Melbourne, Australia
Python By Steve Wright. What is Python? Simple, powerful, GP scripting language Simple, powerful, GP scripting language Object oriented Object oriented.
Introduction to Python. Outline Python IS ……. History Installation Data Structures Flow of Control Functions Modules References.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
CSC 9010: Natural Language Processing
Introduction to Python: Slides Referenced in Homework 0 CSE-391: Artificial Intelligence University of Pennsylvania Matt Huenerfauth January 2005.
Python Introduction.
PHP: Hypertext Processor Fred Durao
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
Programming Languages: Telling the Computers What to Do Chapter 16.
A First Program Using C#
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 18 Topics: Intro to HTML/CSS: Questions? Summer Work Letter.
Microsoft Visual Basic 2005: Reloaded Second Edition
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
JavaScript Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
Bridges To Computing General Information: This document was created for use in the "Bridges to Computing" project of Brooklyn College. You are invited.
Python: An Introduction
Computer Science 111 Fundamentals of Programming I Overview of Programming.
1 Python CIS*2450 Advanced Programming Concepts Material for this lecture was developed by Dr. D. Calvert.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Introduction to Programming Peggy Batchelor.
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
History of C 1950 – FORTRAN (Formula Translator) 1959 – COBOL (Common Business Oriented Language) 1971 – Pascal Between Ada.
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Python – May 11 Briefing Course overview Introduction to the language Lab.
Intro to Python Adriane Huber Debbie Bartlett Python Lab #1Python Lab #1 1.
Introduction to PHP Advanced Database System Lab no.1.
Introducing Python CS 4320, SPRING Resources We will be following the Python tutorialPython tutorial These notes will cover the following sections.
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
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.
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
An Introduction. What is Python? Interpreted language Created by Guido Van Rossum – early 90s Named after Monty Python
CS105 Computer Programming PYTHON (based on CS 11 Python track: lecture 1, CALTECH)
Unit 1 Basic Python programs, functions Special thanks to Roy McElmurry, John Kurkowski, Scott Shawcroft, Ryan Tucker, Paul Beck for their work. Except.
By Austin Laudenslager AN INTRODUCTION TO PYTHON.
Trinity College Dublin, The University of Dublin GE3M25: Computer Programming for Biologists Python Karsten Hokamp, PhD Genetics TCD, 03/11/2015.
Python Let’s get started!.
PHP Tutorial. What is PHP PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
D OTNET ONLINE TRAINING. DOTNET Online Training Course Content : Introduction to.Net Online Training NET FUNDAMENTALS Why Dot Net? The Dot Net initiative.
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
Fundamentals of Programming I Overview of Programming
CST 1101 Problem Solving Using Computers
Introduction to GIS PythonScript CGIS-NURIntroduction to ArcGIS II.
Whatcha doin'? Aims: To start using Python. To understand loops.
A Python Tour: Just a Brief Introduction
GCSE COMPUTER SCIENCE Practical Programming using Python
GCSE COMPUTER SCIENCE Practical Programming using Python
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
Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during.
SVTRAININGS. SVTRAININGS Python Overview  Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed.
1 Python Lab #1 Intro to Python Adriane Huber Debbie Bartlett.
Do you know this browser?...
VISUAL BASIC.
Introduction to Python
CSC 458– Predictive Analytics I, Fall 2018, Intro. To Python
12th Computer Science – Unit 5
Chapter 1: Programming Basics, Python History and Program Components
CSCI 203: Introduction to Computer Science I
Python Basics. Topics Features How does Python work Basic Features I/O in Python Operators Control Statements Function/Scope of variables OOP Concepts.
Learning Python 5th Edition
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

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. If you use all or part of this work, please or contact me with details.

Today we will discuss: Overview of my book as course text and history of the language A few basic features with Python Advanced features of Python—not just an introductory language!

History Developed by Guido van Rossum 1990 Actively maintained by him and others New features and extensions added all the time Many books and websites with information Name is based on Monty Python and not a large snake!

Python features Easy to learn Great for RAD Cross-platform and open-source Compile to *.exe GUI and other add-ins such as Pygame, Vpython, WX Windows, etc. Forces “clean” coding skills Syntax similar to C/C++ and JAVA – can export to C Free and commercial tools available Used everywhere from application development and server scripting to teaching

Course: Intro to Programming and Logic History of computers and programming Prototype solutions (flowchart and pseudocode) Program CLI applications Basic control structures Debugging Advanced topics: GUI design, Add-in SDK’s, COM integration, OOP, etc.

Two modes of operation Built-in IDE “IDLE” “Line-by-line” or interactive mode “Multi-line” or script mode – can save programs for reuse Helloi.avi

Variables and Math operators Variables are automatically “typed” to best fit. No variable declaration. Variables are immutable and not reused. Math operators similar to C++, JAVA, VB, etc. * = multiplication, + = addition, % modulus, etc.

Comment statements Pound sign ( # ) is used for single line comments. Multi-line comments are wrapped in triple quoted strings. “”” any comments here… “””

Examples

Single selection structure and Statement blocks Handled by indentation Forces “clean” code writing Format specifiers similar to C++/JAVA

Dual selection structure Similar to other languages Indentation defines statement blocks

Multiple selection structure Similar to if, else if, else (could be switch or select case in other languages). elif is same as else if

While Similar to loop in other languages

For for x in range(10): print x name=“Smith” for letter in name: print letter

Functions def function_name(): any code for function…

Arrays Very rich collection of “array-like” structures Lists, tuples, and dictionaries More powerful than a standard array Teach same principles Easy to learn and implement

Dictionary example

Class design Can declare classes in same file or separate file. Can focus on class design without other syntax issues associated with other languages. Put fun into class design!

Class example

GUI programming Free SDK pythoncard.sourceforge.net Similar to VB/VB.NET Cross-platform unlike Visual Basic! No special “dot net” framework needed! Other GUI SDK’s available as well

Pygame Free sdk from for game/simulation development. Many good/free tutorials available. Open-source games you can modify.

3D Graphics/animation Vpython.org free 3d/animation sdk. Use for general graphics study or physics classes.

More information

Questions? Thank you and good luck! Text: Design, Logic, and Programming with Python by James B. Browning Barnes and Noble