Presentation is loading. Please wait.

Presentation is loading. Please wait.

Week of 12/12/16 Test Review.

Similar presentations


Presentation on theme: "Week of 12/12/16 Test Review."— Presentation transcript:

1 Week of 12/12/16 Test Review

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

3 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

4 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

5 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

6 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.

7 What does the following code do?

8 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.”


Download ppt "Week of 12/12/16 Test Review."

Similar presentations


Ads by Google