Python Inputs Mr. Husch.

Slides:



Advertisements
Similar presentations
Computing Science Software Design and Development SOFTWARE DESIGN AND DEVELOPMENT USING PYTHON.
Advertisements

Python (yay!) November 16, Unit 7. Recap We can store values in variables using an assignment statement >>>x = We can get input from the user using.
Course A201: Introduction to Programming 09/09/2010.
The if statement and files. The if statement Do a code block only when something is True if test: print "The expression is true"
PYTHON. Python is a high-level, interpreted, interactive and object- oriented scripting language. Python was designed to be highly readable which uses.
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.
Python Repetition. We use repetition to prevent typing the same code out many times and to make our code more efficient. FOR is used when you know how.
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.
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 – Part 4 Conditionals and Recursion. Conditional execution If statement if x>0:# CONDITION print (‘x is positive’) Same structure as function definition.
PYTHON PROGRAMMING LANGUAGE.
A-level Computing Programming challenge 1: Fizzbuzz
Whatcha doin'? Aims: To start using Python. To understand loops.
Python 23 Mr. Husch.
Repetition Structures
Introduction to Python
Python 14 Mr. Husch.
Lesson 1 An Introduction
Python 6 Mr. Husch.
Formatting Output.
Python 18 Mr. Husch.
Python Lesson 6 Mr. Kalmes.
Python 17 Mr. Husch.
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.
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Python Lessons 13 & 14 Mr. Kalmes.
Comparing Strings – How to
Repetition Structures
Spot the bug!.
Python Lesson 21 Mr. Kalmes.
Python 9 Mr. Husch.
Lists in Python Outputting lists.
Python 21 Mr. Husch.
Python 17 Mr. Husch.
Python Lessons 9 & 10 Mr. Husch.
Starter answer these questions in your book
Python 19 Mr. Husch.
What is the name of your company? …by Monday…
Python Lesson’S 1 & 2 Mr. Kalmes.
Python Basics with Jupyter Notebook
What is x? x = 12 %
Python 16 Mr. Husch.
Basic Lessons 5 & 6 Mr. Kalmes.
Just Basic Lessons 9 Mr. Kalmes.
Input and Output Python3 Beginner #3.
Introduction to Python
Python 3 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 10 Mr. Husch.
Python 18 Mr. Husch.
Python 12 Mr. Husch.
More Strings.
Python 4 and 5 Mr. Husch.
Python 8 Mr. Husch.
Python 13 Mr. Husch.
Basic 9 Mr. Husch.
JustBasic 20 Mr. Husch.
CS 1111 Introduction to Programming Spring 2019
GCSE Computing.
Getting Started in Python
Presentation transcript:

Python Inputs Mr. Husch

Aim TSWBAT use inputs in python.

How to use input in Python. INPUT is a function in Python 2, the one that we are using, but it does not work the way you would expect it to. It is looking for you to run code inside the input, something that you will not really be doing right now. Raw_input will allow users to input something into the program and have the program use the information like a string, which is what you will want most of the time.

Practice using inputs Create a program for me that has 8 raw_inputs and displays them. Combine two of the inputs into one print.