Week of 12/12/16 Test Review.

Slides:



Advertisements
Similar presentations
EasyGUI “Probably the Easiest GUI in the world”. Assumptions (Teachers’ Notes) This resources sets out an introduction to using easyGUI and Python
Advertisements

Top-Down Design CSC 161: The Art of Programming Prof. Henry Kautz 9/16/2009.
1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
1 9/28/07CS150 Introduction to Computer Science 1 Loops section 5.2, 5.4, 5.7.
Chapter 6 - Repetition. Introduction u Many applications require certain operations to be carried out more than once. Such situations require repetition.
Python November 18, Unit 7. So Far We can get user input We can create variables We can convert values from one type to another using functions We can.
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
COMP 14 Introduction to Programming Miguel A. Otaduy May 20, 2004.
Chapter 4: Looping CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
Python Programming Fundamentals
An Introduction to Textual Programming
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #002 (January 17, 2015)
PYTHON: PART 2 Catherine and Annie. VARIABLES  That last program was a little simple. You probably want something a little more challenging.  Let’s.
CSC 204 Programming I Loop I The while statement.
For loops in programming Assumes you have seen assignment statements and print statements.
PROGRAMMING In Lesson 2. STARTER ACTIVITY Complete the starter activity in your python folder – lesson 2 Now we will see how you got on and update your.
Repetition Structures Repetition Structures allow you to write programs that will repeat program steps multiple times. –Also called Loops –Counter controlled.
CSC 110 Using Python [Reading: chapter 1] CSC 110 B 1.
Course A201: Introduction to Programming 09/16/2010.
Conditional Loops CSIS 1595: Fundamentals of Programming and Problem Solving 1.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
EGR 115 Introduction to Computing for Engineers Branching & Program Design – Part 3 Friday 03 Oct 2014 EGR 115 Introduction to Computing for Engineers.
Introduction to Programming Python Lab 7: if Statement 19 February PythonLab7 lecture slides.ppt Ping Brennan
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #003 (February 14, 2015)
COP 3275 – Finishing Loops and Beginning Arrays Instructor: Diego Rivera-Gutierrez.
CSC 108H: Introduction to Computer Programming Summer 2011 Marek Janicki.
CMSC201 Computer Science I for Majors Lecture 03 – Variables
GCSE COMPUTER SCIENCE Practical Programming using Python
Whatcha doin'? Aims: To start using Python. To understand loops.
Recap: If, elif, else If <True condition>:
BIT116: Scripting Loops.
Lesson 4 - Challenges.
Lesson 05: Iterations Class Chat: Attendance: Participation
Warm-up Program Use the same method as your first fortune cookie project and write a program that reads in a string from the user and, at random, will.
Introduction to Programming
Java for Beginners.
Lesson 3 - Repetition.
Introduction to Programmng in Python
Chapter 5: Loops and Files.
UMBC CMSC 104 – Section 01, Fall 2016
Engineering Innovation Center
Learning to Program in Python
Introduction to Programming
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Learning to Program in Python
Lesson 05: Iterations Topic: Introduction to Programming, Zybook Ch 4, P4E Ch 5. Slides on website.
Exception Handling.
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Repetition Structures
Escape sequences: Practice using the escape sequences on the code below to see what happens. Try this next code to help you understand the last two sequences.
IPC144 Introduction to Programming Using C Week 3 – Lesson 1
Introduction to TouchDevelop
IPC144 Introduction to Programming Using C Week 3 – Lesson 2
IST256 : Applications Programming for Information Systems
Intro to Computer Science CS1510 Dr. Sarah Diesburg
random number between 1 and 5.
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
CS2011 Introduction to Programming I Selections (I)
Python Basics with Jupyter Notebook
Programming In Lesson 4.
IPC144 Introduction to Programming Using C Week 4 – Lesson 2
CS 101 First Exam Review.
CMPT 120 Lecture 4 – Unit 1 – Chatbots
Starter Look at the hand-out.
Iteration – While Loops
GCSE Computing.
Getting Started in Python
Presentation transcript:

Week of 12/12/16 Test Review

https://groklearning.com/ “Start our beginner course” Register a free account Select Introduction to Programming 2 (YELLOW BOX)

Todays agenda: Grok learning -Go Over Quiz -Review: Print statements Getting user input Math operations int() float() String methods Making decisions, conditional expressions Activity: Maths Mix

New stuff Activity: Robots in a line Manipulating strings Storing multiple values using lists Creating and modifying lists Manipulating lists Activity: Robots in a line For loops

Independent work Open the Guess My Number file from the chapter 3 folder Read about the guess my number game on pages 81-84 Complete Challenge #3 on page 85

RECAP: The while loop repeats part of your code based on a condition. Python Loops RECAP: The while loop repeats part of your code based on a condition. As long as the condition is true, some code repeats.

What does the following code do?

WHILE LOOP Warm-up Create a while loop that asks the user if they are enjoying the course (y/n). If they say “n”, respond with "Sorry, I didn't catch that. Enter again: “ and prompt them again. Create a while loop that prints out all the numbers from 1 to 10 squared (1,4,9,16,…,100), each on their own line Write a program that generates a random number and allows the user to guess what the number is 3 times. Create a while loop that lets the user keep guessing as long as the variable is greater than 0. Ask the user for their guess, and if they guess correctly print “you win!” and break the loop. Decrement the guesses left by one. Use an else: case after your while loop to print “You lose.”