CS177 Python Programming

Similar documents
Course Content Concepts

CS 100: Principles of Computing

Accounting 312: Fundamentals of Managerial Accounting Syllabus Spring Brown

ENME 605 Advanced Control Systems, Fall 2015 Department of Mechanical Engineering

*In Ancient Greek: *In English: micro = small macro = large economia = management of the household or family

CS 101 Computer Science I Fall Instructor Muller. Syllabus

Computer Science 1015F ~ 2016 ~ Notes to Students

Syllabus: CS 377 Communication and Ethical Issues in Computing 3 Credit Hours Prerequisite: CS 251, Data Structures Fall 2015

CS 1103 Computer Science I Honors. Fall Instructor Muller. Syllabus

Introduce yourself. Change the name out and put your information here.

Spring 2015 IET4451 Systems Simulation Course Syllabus for Traditional, Hybrid, and Online Classes

i>clicker Setup Training Documentation This document explains the process of integrating your i>clicker software with your Moodle course.

CS Course Missive

Class Meeting Time and Place: Section 3: MTWF10:00-10:50 TILT 221

FORCE : TECHNIQUES DE DESSIN DYNAMIQUE POUR L'ANIMATION FROM PEARSON EDUCATION

Getting Started with Deliberate Practice

Streaming Video Control Review. Who am I?

ADVANCED MACHINE LEARNING WITH PYTHON BY JOHN HEARTY DOWNLOAD EBOOK : ADVANCED MACHINE LEARNING WITH PYTHON BY JOHN HEARTY PDF

Data Structures and Algorithms

The Foundations of Interpersonal Communication

Course Specifications

ACC 380K.4 Course Syllabus

Many instructors use a weighted total to calculate their grades. This lesson explains how to set up a weighted total using categories.

Understanding and Interpreting the NRC s Data-Based Assessment of Research-Doctorate Programs in the United States (2010)

POFI 1301 IN, Computer Applications I (Introductory Office 2010) STUDENT INFORMANTION PLAN Spring 2013

Spring 2014 SYLLABUS Michigan State University STT 430: Probability and Statistics for Engineering

ACC 362 Course Syllabus

Lexia Skill Builders: Independent Student Practice

BADM 641 (sec. 7D1) (on-line) Decision Analysis August 16 October 6, 2017 CRN: 83777

COMMUNICATION AND JOURNALISM Introduction to Communication Spring 2010

INTERMEDIATE ALGEBRA Course Syllabus

Exploration. CS : Deep Reinforcement Learning Sergey Levine

MERRY CHRISTMAS Level: 5th year of Primary Education Grammar:

INTRODUCTION TO GENERAL PSYCHOLOGY (PSYC 1101) ONLINE SYLLABUS. Instructor: April Babb Crisp, M.S., LPC

BOS 3001, Fundamentals of Occupational Safety and Health Course Syllabus. Course Description. Course Textbook. Course Learning Outcomes.

CS Machine Learning

University of Waterloo School of Accountancy. AFM 102: Introductory Management Accounting. Fall Term 2004: Section 4

Spring 2016 Stony Brook University Instructor: Dr. Paul Fodor

SYLLABUS. EC 322 Intermediate Macroeconomics Fall 2012

Syllabus: INF382D Introduction to Information Resources & Services Spring 2013

Cheating Pearson Mylab

Eggs-periments & Eggs-plorations

Houghton Mifflin Online Assessment System Walkthrough Guide

PRD Online

Python Machine Learning

If you have problems logging in go to

Professors will not accept Extra Credit work nor should students ask a professor to make Extra Credit assignments.

Business Analytics and Information Tech COURSE NUMBER: 33:136:494 COURSE TITLE: Data Mining and Business Intelligence

ABC of Programming Linda

Getting Started Guide

CIS 121 INTRODUCTION TO COMPUTER INFORMATION SYSTEMS - SYLLABUS

ACCOUNTING FOR MANAGERS BU-5190-AU7 Syllabus

PGCE Secondary Education. Primary School Experience

SYLLABUS- ACCOUNTING 5250: Advanced Auditing (SPRING 2017)

S T A T 251 C o u r s e S y l l a b u s I n t r o d u c t i o n t o p r o b a b i l i t y

General Microbiology (BIOL ) Course Syllabus

Nutrition 10 Contemporary Nutrition WINTER 2016

GIS 5049: GIS for Non Majors Department of Environmental Science, Policy and Geography University of South Florida St. Petersburg Spring 2011

Foothill College Summer 2016

OCR for Arabic using SIFT Descriptors With Online Failure Prediction

Syllabus Foundations of Finance Summer 2014 FINC-UB

Machine Learning and Data Mining. Ensembles of Learners. Prof. Alexander Ihler

Creating Your Term Schedule

ITSC 1301 Introduction to Computers Course Syllabus

Introduction to WeBWorK for Students

MGMT 479 (Hybrid) Strategic Management

CS 3516: Computer Networks

Creating and Thinking critically

Test How To. Creating a New Test

Diagnostic Test. Middle School Mathematics

ACCOUNTING FOR MANAGERS BU-5190-OL Syllabus

TIMBERDOODLE SAMPLE PAGES

BA 130 Introduction to International Business

EECS 700: Computer Modeling, Simulation, and Visualization Fall 2014

ACTL5103 Stochastic Modelling For Actuaries. Course Outline Semester 2, 2014

EMPOWER Self-Service Portal Student User Manual

P-4: Differentiate your plans to fit your students

Mktg 315 Marketing Research Spring 2015 Sec. 003 W 6:00-8:45 p.m. MBEB 1110

Demography and Population Geography with GISc GEH 320/GEP 620 (H81) / PHE 718 / EES80500 Syllabus

2014 Free Spirit Publishing. All rights reserved.

Required Materials: The Elements of Design, Third Edition; Poppy Evans & Mark A. Thomas; ISBN GB+ flash/jump drive

How to read a Paper ISMLL. Dr. Josif Grabocka, Carlotta Schatten

How to make an A in Physics 101/102. Submitted by students who earned an A in PHYS 101 and PHYS 102.

Class Numbers: & Personal Financial Management. Sections: RVCC & RVDC. Summer 2008 FIN Fully Online

COMS 622 Course Syllabus. Note:

Syllabus Fall 2014 Earth Science 130: Introduction to Oceanography

CHAPTER V IMPLEMENTATION OF A LEARNING CONTRACT AND THE MODIFICATIONS TO THE ACTIVITIES Instructional Space The atmosphere created by the interaction

TIMSS ADVANCED 2015 USER GUIDE FOR THE INTERNATIONAL DATABASE. Pierre Foy

SNAP, CRACKLE AND POP! INFUSING MULTI-SENSORY ACTIVITIES INTO THE EARLY CHILDHOOD CLASSROOM SUE SCHNARS, M.ED. AND ELISHA GROSSENBACHER JUNE 27,2014

PreAP Geometry. Ms. Patricia Winkler

Specification and Evaluation of Machine Translation Toy Systems - Criteria for laboratory assignments

THE GEORGE WASHINGTON UNIVERSITY Department of Economics. ECON 1012: PRINCIPLES OF MACROECONOMICS Prof. Irene R. Foster

Outreach Connect User Manual

MKTG 611- Marketing Management The Wharton School, University of Pennsylvania Fall 2016

Introduction to Forensic Anthropology ASM 275, Section 1737, Glendale Community College, Fall 2008

Office Hours: Day Time Location TR 12:00pm - 2:00pm Main Campus Carl DeSantis Building 5136

Multiple Intelligence Teaching Strategy Response Groups

ODS Portal Share educational resources in communities Upload your educational content!

Sul Ross State University Spring Syllabus for ED 6315 Design and Implementation of Curriculum

Pitching Accounts & Advertising Sales ADV /PR

Transcription:

CS177 Python Programming Recitation 1 Introduction Adapted from John Zelle s Book Slides 1

Course Instructors Dr. Elisha Sacks E-mail: eps@purdue.edu Ruby Tahboub (Course Coordinator) E-mail: rtahboub@purdue.edu Office: LWSN 2149 #20

GTA Information Vignesh Gouthaman Graduate Teaching Assistant M.S in Mechanical Engineering Office and Office Hours: TBD Email: vgoutham@purdue.edu Phone: (906) 396 6602 {Use phone only in emergencies}

Website http://courses.cs.purdue.edu/cs17700:fall14:start Class notes, labs and projects will be posted there.

Course Structure Lecture 2 times a week Recitation once a week. Lab once a week. We will take attendance

Textbook Python Programming: An Introduction to Computer Science (Second Edition) John Zelle, ISBN 978-1-59028-241-0-9, Franklin, Beedle & Associates Inc., 2004.

Grade Distribution Item Weight Midterms 25% Laboratories 25% Projects 25% Final Exam 20% Attendance/Quizzes 5%

What do you need? Download Python (highly recommended) https://www.python.org/download iclicker Register on Blackboard Learn Piazza Sign up by visiting CS17700 on Piazza.

Objectives Programming in Python Learn basic Computer Science concepts Design software Python Programming, 2/e 9

What is a Computer Program What is a computer program? A detailed, step-by-step set of instructions telling a computer what to do. If we change the program, the computer performs a different set of actions or a different task. The machine stays the same, but the program changes! Python Programming, 2/e 10

Algorithms Algorithms are the main focus Algorithms formally describe computational processes Programs embody algorithms Note: An algorithm is independent of how a program implements it 11

Algorithm Example 1. Remove book from bag 2. Place book on desk 3. Open book to first page 4. Until end of book, Read. Step 4 contains a few complexities. Until suggests that there is some repetition and Read could represent an algorithm also 12

Algorithms and..recipes You are hungry, so you want to eat something. You decide to make a two egg omelet. What do you need to do to make a two egg omelet? Let s see

Egg Omelet How to make an egg omelet: 1. Put oil in pan 2. Pre-heat pan 3. Crack eggs into bowl 4. Add Salt 5. Wisk the contents of bowl 6. Pour contents of bowl into pan 7. Wait for 3 minutes

Anything in common? Do you see something in common between reading a book, say the CS177 textbook and making an omelet? What a strange idea! Comparing the reading of a book with making an omelet Look more carefully Ask yourself some questions.

Some questions Why did you decide to read (study) the CS177 textbook? Answer(s): Because you want to pass the course Because you do not remember what was said in the lesson.

Some questions Why did you decide to make an omelets? Answer(s): Because by eating the omelets you can tackle your hunger.

What is in common? In both cases, reading the textbook solves a problem To solve a problem, you must perform a certain (finite!) number of different steps, usually one after another

Pseudo-code Pseudocode is an artificial and informal language that helps programmers develop algorithms. Pseudocode is a "text-based" detail (algorithmic) design tool.

Pass or Fail If student's grade is greater than or equal to 60 Print "passed" else Print "failed"

Class Average Set total to zero Set grade counter to one While grade counter is less than or equal to ten Input the next grade Add the grade into the total Set the class average to the total divided by ten Print the class average.

Using python Go to Start > Search python Click on IDLE(Python GUI) First window opens Click File > New Window Second window open Always write code in this window Don t forget to save

What can python do? Simple calculations >>>a=5 >>>b=4 >>>4=x (WRONG) >>>c=a+b >>>c 9 Print Statement >>>print( Hi ) Hi >>>print(c) 9 >>>print(a,c) 5 9

Let s write a simple program # by Vignesh Gouthaman # This program calculates sum of 2 numbers Output >>>4 + 5 = 9 def main(): main() a = 4 b = 5 c = a + b print(a,"+",b,"=",c)