Python – May 11 Briefing Course overview Introduction to the language Lab.

Slides:



Advertisements
Similar presentations
Lecture 2 - Introduction Objective C is used primarily for application development on Apple's Mac OS X and iPhone. On the Apple it is used together with.
Advertisements

Programming for Beginners
ECS 15 if and random. Topic  Testing user input using if statements  Truth and falsehood in Python  Getting random numbers.
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
Slide 1 CS3 Fall 2005 Lecture week 13: Introduction to the Big Project.
XP 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial 10.
Python Jordan Miller and Lauren Winkleman CS 311 Fall 2011.
Introduction to a Programming Environment
Copyright © 2014 Dr. James D. Palmer; This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Slide 1. Slide 2 Administrivia Nate's office hours are Wed, 2-4, in 329 Soda! TA Clint will be handing out a paper survey in class sometime this week.
Principles of Procedural Programming
CSC 9010: Natural Language Processing
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
CMSC 104, Version 8/061L18Functions1.ppt Functions, Part 1 of 4 Topics Using Predefined Functions Programmer-Defined Functions Using Input Parameters Function.
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 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
Goals of Course Introduction to the programming language C Learn how to program Learn ‘good’ programming practices.
PYTHON. Python is a high-level, interpreted, interactive and object- oriented scripting language. Python was designed to be highly readable which uses.
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
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.
Intro to Python Adriane Huber Debbie Bartlett Python Lab #1Python Lab #1 1.
COMP 171: Data Types John Barr. Review - What is Computer Science? Problem Solving  Recognizing Patterns  If you can find a pattern in the way you solve.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 1 Simple Python Programs Using Print, Variables, Input.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
Algorithms  Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
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.
CSC 110 Using Python [Reading: chapter 1] CSC 110 B 1.
1 COMS 261 Computer Science I Title: C++ Fundamentals Date: September 05, 2005 Lecture Number: 4.
CS105 Computer Programming PYTHON (based on CS 11 Python track: lecture 1, CALTECH)
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
You Need an Interpreter!. Closing the GAP Thus far, we’ve been struggling to speak to computers in “their” language, maybe its time we spoke to them in.
Intro to Programming Web Design ½ Shade Adetoro. Programming Slangs IDE - Integrated Development Environment – the software in which you develop an application.
8 January 2016Birkbeck College, U. London1 Introduction to Programming Lecturer: Steve Maybank Department of Computer Science and Information Systems
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
A Python Tour: Just a Brief Introduction "The only way to learn a new programming language is by writing programs in it." -- B. Kernighan and D. Ritchie.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
CSCI 161 Lecture 3 Martin van Bommel. Operating System Program that acts as interface to other software and the underlying hardware Operating System Utilities.
 A readable, dynamic, pleasant,  flexible, fast and powerful language Introduction to Python.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
Getting Started With Python Brendan Routledge
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
PYTHON PROGRAMMING LANGUAGE.
Introduction to Programming
CST 1101 Problem Solving Using Computers
Whatcha doin'? Aims: To start using Python. To understand loops.
A Python Tour: Just a Brief Introduction
A Playful Introduction to Programming by Jason R. Briggs
IST256 : Applications Programming for Information Systems
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
Algorithms Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
Topic: Functions – Part 2
Introduction to Programming
Introduction to Programming
Do you know this browser?...
CS190/295 Programming in Python for Life Sciences: Lecture 1
Introduction to Python
First Python Program Professor Hugh C. Lauer CS-1004 — Introduction to Programming for Non-Majors (Slides include materials from Python Programming: An.
Loops CIS 40 – Introduction to Programming in Python
Section 1 Introduction To Programming
Introduction to Programming
12th Computer Science – Unit 5
Chapter 1: Programming Basics, Python History and Program Components
L L Line CSE 420 Computer Games Lecture #3 Introduction to Python.
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Python – May 11 Briefing Course overview Introduction to the language Lab

Python Why computer programming? –Computer is a general-purpose machine, born to be programmed –We want to solve many types of problems Our goals –Become multi-lingual –Practice with design & implementation –Learn by doing: start simple Help available –Textbook, python.org, tutorials

Background First released, 1991 –Guido van Rossum, CWI, Netherlands –Dissatisfaction with existing languages High-level, multi-purpose language –Relatively easy to learn & use (we hope!) –Procedural, object oriented or functional –Interpreted –Interface to OS, file system, Web –Some data structures built into language –Standard library –(More details in sections 1.3 and 1.5)

Initial To-Do Essential skills; special features of language Routine stuff –Source file name ends in.py –How to run interpreter (command line or IDE) –Program structure I/O –Interactive, file; formatting Variables, identifiers Doing math Comments, tokens, whitespace, style conventions

continued Control structures –Asking questions, repeating stuff –nesting –How to make comparisons –Boolean operations: and/or/not Functions/procedures: parameters, returns Data structures –String, dynamically-sized list, etc. Standard (i.e. run-time) library –Random numbers, etc.

In the end… How can you tell if you’ve mastered a language? –Write a game –Given a spec or algorithm, can you implement it? –You may prefer to do something in Python! –You never need to know everything. Know where to find stuff quickly This course lies between first 2 prog. courses –You’ll see more operations & applications than in the 1 st course. Not as theoretical as 2 nd course.

Beginning Versions 2.x and 3.x Lab: let’s use IDE such as ActivePython –Free, simple, includes debugger Code can by entered: –directly in shell (good for experimenting!) –in a file, which we can save and reuse later

Initial nuts & bolts Comments begin with #, go to end of line Statements don’t end in semicolon Don’t arbitrarily indent code Put \ at end of line to continue statement Variables are not declared Interactive output –Version 2.6: print statement print name –Version 3.0: print function print (name)

continued Examples print “Hello, world” print 7+4*3 Interactive input –input( ) for getting a number –raw_input( ) for getting a string name = raw_input(“What is your name”)

What’s next? Lab Please read chapter 2 Practice with –Basic I/O –Mathematical operations –Strings –Simple if statement –Simple loop