Python 10 Mr. Husch.

Slides:



Advertisements
Similar presentations
Getting Input in Python Assumes assignment statement, typecasts.
Advertisements

Python November 14, Unit 7. Python Hello world, in class.
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.
Computing Theory: BBC Basic Coding Year 11. Lesson Objective You will: Be able to define what BBC basic is Be able to annotate BBC basic code Be able.
Microsoft ® Office Acess 2003 Training Analyzing, viewing, and reporting data Mr Garel…… presents:
Section 3 Calculations National 4/5 Scratch Course.
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #002 (January 17, 2015)
Python File Handling. In all the programs you have made so far when program is closed all the data is lost, but what if you want to keep the data to use.
Section 2 Variables National 4/5 Scratch Course. What you should know after this lesson What a variable is Where variables are stored How to get data.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Variables When programming it is often necessary to store a value for use later on in the program. A variable is a label given to a location in memory.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 1 Simple Python Programs Using Print, Variables, Input.
My Python Programmes NAME:.
Creating a mystic meg program A simple program asking the user questions and using their answers to build up a fortune telling in a list.
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
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.
Programming Simple Programming Variables.
Python 23 Mr. Husch.
Python Lesson 12 Mr. Kalmes.
Introduction to Python
Data Types and Conversions, Input from the Keyboard
Quiz # 02 Design a data type Date to hold date
Lesson 4 - Challenges.
Python 14 Mr. Husch.
Python 6 Mr. Husch.
Python 18 Mr. Husch.
Python Lesson 6 Mr. Kalmes.
Python Lesson 3 Mr. Kalmes.
Python I/O.
Python Mr. Husch.
Use proper case (ie Caps for the beginnings of words)
Python Lessons 9 & 10 Mr. Kalmes.
An Introduction to Python
Python Lessons 13 & 14 Mr. Kalmes.
Just Basic lesson 16 Mr. Kalmes.
Python Lesson 21 Mr. Kalmes.
Python 9 Mr. Husch.
Class Examples.
Python 21 Mr. Husch.
Basic Lessons 7&8 Mr. Husch.
Python Lessons 9 & 10 Mr. Husch.
Python 19 Mr. Husch.
Introduction In today’s lesson we will look at: why Python?
Python Lesson’S 1 & 2 Mr. Kalmes.
Using Script Files and Managing Data
Just Basic Lessons 7&8 Mr. Kalmes.
Python 16 Mr. Husch.
Python Programming Mr Scicluna.
Basic Lessons 5 & 6 Mr. Kalmes.
Lesson 02: Introduction to Python
Python 3 Mr. Husch.
Python Inputs Mr. Husch.
Python Lessons 13 & 14 Mr. Husch.
Basic Mr. Husch.
Python 16 Mr. Husch.
JustBasic 16 Mr. Husch.
Python 19 Mr. Husch.
Python Lessons 7 & 8 Mr. Husch.
Python 18 Mr. Husch.
Python 12 Mr. Husch.
Just Basic Lessons Mr. Kalmes.
Python 4 and 5 Mr. Husch.
Python 8 Mr. Husch.
Python 13 Mr. Husch.
Input, Variables, and Mathematical Expressions
Basic 9 Mr. Husch.
What you need to do… Drag the pieces of code into the correct order like you can see in the EXAMPLE below. print ( “ int input ) = + Hello world chr ord.
Just Basic Lessons 8 Mr. Kalmes.
4.4 – List vs Array Exercise 4.1: Array Variables
Getting Started in Python
Presentation transcript:

Python 10 Mr. Husch

Aim: Analyze the raw_input () command Practice sequences that utilize new commands

Lesson Overview This lesson illustrates the raw_input () command structure. If we put a string into the parentheses, it will prompt the user to enter that information and store it as the variable it is associated with.

Main Idea X = raw_input (age?) You should understand that if we place a string inside the parentheses, it will generate a prompt and associate that information with the variable. For example: X = raw_input (age?) Would ask the user “age?” and when they enter it, it would store that number under variable X.

Create this, save as lastname_python10 Create this, save as lastname_python10. You will need to add an additional 5 raw inputs as well.