Intro to Python Adriane Huber Debbie Bartlett Python Lab #1Python Lab #1 1.

Slides:



Advertisements
Similar presentations
COMPUTER PROGRAMMING Task 1 LEVEL 6 PROGRAMMING: Be able to use a text based language like Python and JavaScript & correctly use procedures and functions.
Advertisements

Introduction to JavaScript
‘And Now For Something Completely Different’ Python Programming David Hartwell Clements.
Ruby The Gem of new programming languages. An interpreted scripting language.
Java Intro. A First Java Program //The Hello, World! program in Java public class Hello { public static void main(String[] args) { System.out.println("Hello,
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.
Week 1 basic Python programs, defining functions Special thanks to Scott Shawcroft, Ryan Tucker, and Paul Beck for their work on these slides. Except where.
Python Jordan Miller and Lauren Winkleman CS 311 Fall 2011.
Intro to Python Paul Martin. History Designed by Guido van Rossum Goal: “Combine remarkable power with very clear syntax” Very popular in science labs.
Scripting Languages. Originally, a script was a file containing a sequence of commands that needed to be executed Control structures were added to make.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Intro to Programming Part of Chapter 5. Algorithms An algorithm is an ordered set of executable steps that defines a terminating process. An algorithm.
Python for S60 SmartPhones PostPC Workshop Fall 2006 Amnon Dekel.
Python Introduction.
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
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.
Python Programming Fundamentals
Introduction to Programming Professor Sprenkle September 10, 2007.
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
PYTHON. Python is a high-level, interpreted, interactive and object- oriented scripting language. Python was designed to be highly readable which uses.
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
Programming language A programming language is an artificial language designed to communicate instructions to a machine,languageinstructionsmachine particularly.
GNU Compiler Collection (GCC) and GNU C compiler (gcc) tools used to compile programs in Linux.
CPSC 217 T03 Week I Part #1: Unix and HELLO WORLD Hubert (Sathaporn) Hu.
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 Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
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.
Python – May 11 Briefing Course overview Introduction to the language Lab.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 1 Simple Python Programs Using Print, Variables, Input.
Scripting Languages James Brucker Computer Engineering Dept Kasetsart University.
Week 1 basic Python programs, defining functions Special thanks to Scott Shawcroft, Ryan Tucker, and Paul Beck for their work on these slides. Except where.
CS 330 Programming Languages 10 / 02 / 2007 Instructor: Michael Eckmann.
Unit 1 Basic Python programs, functions Special thanks to Roy McElmurry, John Kurkowski, Scott Shawcroft, Ryan Tucker, Paul Beck for their work. Except.
TCL TK. Tcl/Tk C functions can become Tcl commands that are invoked interactively Tk = scriptable, portable user interface –Windows, X (Unix), MacOS,
Perl Lab #11 Intro to Perl Debbie Bartlett. Perl Lab #1 2 Perl Practical Extraction and Report Language –or- Pathologically Eclectic Rubbish Lister Created.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Python 1 SIGCS 1 Intro to Python March 7, 2012 Presented by Pamela A Moore & Zenia C Bahorski 1.
CS 177 Recitation Week 1 – Intro to Java. Questions?
 Prepared by: Eng. Maryam Adel Abdel-Hady
More on Functions (Part 2) Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg.
C++ Programming Basics C++ Lecture 1 Stacy MacAllister.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
PYTHON PROGRAMMING LANGUAGE.
Development Environment
Whatcha doin'? Aims: To start using Python. To understand loops.
GCSE COMPUTER SCIENCE Practical Programming using Python
GCSE COMPUTER SCIENCE Practical Programming using Python
Introduction to 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.
Lesson 1 An Introduction
Transition to Code Upsorn Praphamontripong CS 1110
1 Python Lab #1 Intro to Python Adriane Huber Debbie Bartlett.
Do you know this browser?...
basic Python programs, defining functions
Java Intro.
Introduction to programming with Python
CSCI N207 Data Analysis Using Spreadsheet
Java Programming with BlueJ Objectives
Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg
12th Computer Science – Unit 5
Chapter 1: Programming Basics, Python History and Program Components
Running a Java Program using Blue Jay.
Input and Output Python3 Beginner #3.
Starter Which of these inventions is: Used most by people in Britain
Presentation transcript:

Intro to Python Adriane Huber Debbie Bartlett Python Lab #1Python Lab #1 1

Python Named derived from TV series, Monty Python’s Flying Circus, not the snake Important goal of developers was to make it fun Common practice was to make Monty Python references in example code Created by Guido Van Rossum in 1991 Python is often compared to Tcl, Perl, Ruby, Scheme or Java Why use Python? General-purpose, interpreted high-level programming language Design philosophy emphasizes code readability Supports multiple programming paradigms object-oriented and to a lesser extent functional Can be used in a scripting or non-scripting context Python Lab #1Python Lab #1 2

Sample Python Script def greet (): print (“Hello, World!”) name = input (“Enter your name:”) if name == “Debbie”: print (“Hello, Debbie! I am glad that you are in CS192 today!”) else: print (“Hello”, name) greet() Python Lab #1Python Lab #1 3

Python Scripts Creating a Python Script Use a text editor such as gedit Name the file greet.py Write your script in greet.py Save greet.py T o run python program in terminal window, type: Python3.3 greet.py Python Lab #1Python Lab #1 4

Python Lab1 Assignment Type your own version of the python script What happens if you don’t use quotes around the first print statement? Take them off, try it, then put them back delete the tab in front of the first print statement? Try it, put it back remove the colon at the end of the first statement that begins with def? Try it, put it back Ask another question in your script Google a “while loop” Add a while loop to your Python Script Show your script to a lab instructor or helper Python Lab #1Python Lab #1 5