Week 1, Day 4 Snakes Alive 31 June 2016.

Slides:



Advertisements
Similar presentations
CS107 Introduction to Computer Science Lecture 3, 4 An Introduction to Algorithms: Loops.
Advertisements

Why python? Automate processes Batch programming Faster Open source Easy recognition of errors Good for data management What is python? Scripting programming.
Week 5 - Friday.  What did we talk about last time?  Repetition  while loops.
Case studies over control structures and iterative structures Instructor – Gokcen Cilingir Cpt S 121 (July 6, 2011) Washington State University.
Mx? A programming language for scientific computation. Related Languages: Matlab IDL Maple, Mathcad, Mathematica.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
PYTHON PROGRAMMING Week 9 - Wednesday. WRITE A PROGRAM TO:  print all the numbers from 1 to 100  print all the even numbers from 1 to 100  print all.
Investigate the degree to which programming concepts are interrelated Reshmi Ravi.
index.php Palmyra Area High School 1.
Python programs How can I run a program? Input and output.
2010/11 : [1]Building Web Applications using MySQL and PHP (W1)PHP Recap.
Eliza the Chatterbox Year 9 Computing HLA
PYTHON PROGRAMMING Week 10 – Wednesday. TERMS – CHAPTER 1 Write down definitions for these terms:  Computation  Computability  Computing  Artificial.
PYTHON PROGRAMMING Week 8 - Wednesday. WHAT DO THESE DO? for x in range(5): print x for x in range(1,5): print x for x in range(1,5): print x**2 numbers.
Introduction to Computational Linguistics Programming I.
Whole Number Arithmetic Recognising patterns. Oral Examples State the next three numbers 1)1, 3, 5, 7,,,
More While Loop Examples CS303E: Elements of Computers and Programming.
Lecture 4: Calculating by Iterating. The while Repetition Statement Repetition structure Programmer specifies an action to be repeated while some condition.
Ch. 10 For Statement Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2012.
File I/O Michael Ernst UW CSE 140 Winter File Input and Output As a programmer, when would one use a file? As a programmer, what does one do with.
Count and add list of numbers From user input and from file.
1. Understand the application of Pseudo Code for programming purposes 2. Be able to write algorithms in Pseudo Code.
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.
PYTHON PROGRAMMING Week 12 – Tuesday. STARTER What is a flowchart? Do you know any of the symbols used in a flowchart and what they mean?
Trinity College Dublin, The University of Dublin GE3M25: Computer Programming for Biologists Python, Class 4 Karsten Hokamp, PhD Genetics TCD, 01/12/2015.
PYTHON PROGRAMMING Week 5 - Tuesday. THE FRIENDSHIP ALGORITHM Note the infinite loop!
PYTHON PROGRAMMING Week 8 - Wednesday. STARTER Fizz Buzz  Let play the game!
Week 6 - Friday.  What did we talk about last time?  Loop examples.
Computer Science 101 For Statement. For-Statement The For-Statement is a loop statement that is especially convenient for loops that are to be executed.
Lecture 5: Layers of Control. Nested while Loops Problem Multiplying two numbers and outputting the result only if they are both less than 5. (i.e. Start.
PYTHON PROGRAMMING Week 5 - Wednesday. THE FRIENDSHIP ALGORITHM Note the infinite loop!
Dictionaries and File I/O George Mason University.
For Loop GCSE Computer Science – Python. For Loop The for loop iterates over the items in a sequence, which can be a string or a list (we will discuss.
Python: Iteration Damian Gordon. Python: Iteration We’ll consider four ways to do iteration: – The WHILE loop – The FOR loop – The DO loop – The LOOP.
PYTHON PROGRAMMING Week 10 - Tuesday. GLOSSARY PROGRAM  Have a look at the program  Print it out.
Controlling Program Structures. Big Picture We are learning how to use structures to control the flow of our programs Last week we looked at If statements.
Winter 2016CISC101 - Prof. McLeod1 CISC101 Reminders Quiz 3 next week. See next slide. Both versions of assignment 3 are posted. Due today.
Files in Python Opening and Closing. Big Picture To use a file in a programming language – You have to open the file – Then you process the data in the.
Next Week… Quiz 2 next week: –All Python –Up to this Friday’s lecture: Expressions Console I/O Conditionals while Loops Assignment 2 (due Feb. 12) topics:
Variable Scope. When you declare a variable, that name and value is only “alive” for some parts of the program  We must declare variables before we use.
Getting Started 27 June 2016 Week 1, Day 1. Who am I? Name: Christopher Little Town: Cambridge Eats: Chips.
ACC 545 Week 6 Learning Team Assignment Consolidated Financial Statements Complete exercise 3-14, parts A, B, and C, on p. 127 of Advanced Accounting (Crain.
Week 1, Day 3 Lazy Coding 29 June 2016.
A-level Computing Programming challenge 1: Fizzbuzz
Flowchart Symbols Terminal Process Input/ Output Decision
Introduction to Programming
Week of 12/12/16 Test Review.
Introduction to Python
Think What will be the output?
Introduction to Programmng in Python
Repetition: the for loop
Teaching KS3 Computing Session 4 Theory: Boolean logic AND/OR/NOT
INF 231 Enthusiastic Study/snaptutorial.com
Python I/O.
Teaching Computing to GCSE
File Handling Programming Guides.
Programming In Lesson 3.
MSIS 655 Advanced Business Applications Programming
Lecture Notes 8/24/04 (part 2)
Capacity Planning.
An introduction to the Linux environment v
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
An Introduction to Linux
Introduction to Computer Science
Introduction to Python
Python Inputs Mr. Husch.
CYB 130 RANK Dreams Come True / cyb130rank.com.
File Handling.
Lecture 31 – Practice Exercises 7
Introduction to Computer Science
Presentation transcript:

Week 1, Day 4 Snakes Alive 31 June 2016

Week 1 Recap Road to Python Mastery Installation Arithmetic Operations Functions The print and input functions Types Conditionals (if statements) While Loops Lists Iteration (for loops) Dictionaries Week 1 Recap Recap ♻♻💡💡

The File System Consolidation Exercises Day 4 Plan

The File System

The campers should be able to recognise that this is a filing cabinet The campers should be able to recognise that this is a filing cabinet. Talk about what a file is - you should get to the point where it is a grouping of information. Talk about what a computer file is really - a data structure for an operating system. For a more advanced class, maybe point out that the file system is actually distinct from the OS.

Python File I/O What does I/O mean? Then show how to read and write files in Python

Exercise 3.1 – Especially Noteworthy Write a short note taking program: The user can either specify that they would like to add a new note, or read the existing note file in a set location If they specify that they would like to read the note, print out the contents of the note If they specify that they would like to write the note, take input from the user and write it to the file

Week 1 Recap Road to Python Mastery Installation Arithmetic Operations Functions The print and input functions Types Conditionals (if statements) While Loops Lists Iteration (for loops) Dictionaries The File System Week 1 Recap Recap ♻♻💡💡