Python 19 Mr. Husch.

Slides:



Advertisements
Similar presentations
CATHERINE AND ANNIE Python: Part 3. Intro to Loops Do you remember in Alice when you could use a loop to make a character perform an action multiple times?
Advertisements

Procedures and Functions. What are they? They are both blocks of code that can be reused to perform specific task. However there is a difference: Function-
Computing Science Software Design and Development SOFTWARE DESIGN AND DEVELOPMENT USING PYTHON.
From Scratch to Python Learn to program like the big boys / girls!
Python Programming Fundamentals
Introduction to Python
Computer Science 111 Fundamentals of Programming I Overview of Programming.
More on Functions (Part 2) Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg.
GNU Compiler Collection (GCC) and GNU C compiler (gcc) tools used to compile programs in Linux.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Week 11. Picture Taking Functions  takePicture(“color” | “gray”) Returns a picture object  Show(picture object) Will show the picture that was taken.
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.
Drush: The Drupal Shell Utility Trevor Mckeown Founder & Owner Sublime Technologies
Make a dice challenge! This is a starter activity and should take 5 minutes [ slide 1 ] 1.Log in to your computer 2.Open IDLE 3.Copy the code below in.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
A First Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington Credits: a significant part of.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
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.
COMPUTER PROGRAMMING Year 9 – Unit 9.04 Week 3. Open the Python INTERPRETER Can you use the interpreter to solve these maths problems? 156 add
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.
COMPUTER PROGRAMMING Year 9 – lesson 1. Objective and Outcome Teaching Objective We are going to look at how to construct a computer program. We will.
Getting Started With Python Brendan Routledge
Python Programming Module 3 Functions Python Programming, 2/e1.
Web Design. How to link the robot How to turn on the robot Sec Getting Started What is python Programming in python How to move the robot How to.
Python 23 Mr. Husch.
MATLAB – More Script Files
A Playful Introduction to Programming by Jason R. Briggs
Python Lesson 12 Mr. Kalmes.
Python Programming Module 3 Functions Python Programming, 2/e.
Python 14 Mr. Husch.
Variables, Expressions, and IO
Python Lesson 12 Mr. Kalmes.
Python 18 Mr. Husch.
Python Lesson 6 Mr. Kalmes.
Week 3 Computer Programming Learning Objective:
Python 17 Mr. Husch.
Python Mr. Husch.
Python Lessons 13 & 14 Mr. Kalmes.
Python Lesson 21 Mr. Kalmes.
Python 9 Mr. Husch.
Python 21 Mr. Husch.
Basic Lessons 7&8 Mr. Husch.
Python 17 Mr. Husch.
Python Lessons 9 & 10 Mr. Husch.
Python programming exercise
Python Lesson’S 1 & 2 Mr. Kalmes.
Python 16 Mr. Husch.
Python Programming Mr Scicluna.
Basic Lessons 5 & 6 Mr. Kalmes.
What are variables? Using input()
Input and Output Python3 Beginner #3.
Python 3 Mr. Husch.
Python Inputs Mr. Husch.
Python Lessons 13 & 14 Mr. Husch.
Basic Mr. Husch.
Python 16 Mr. Husch.
Python 19 Mr. Husch.
Python 10 Mr. Husch.
Python 18 Mr. Husch.
Python 12 Mr. Husch.
Python 4 and 5 Mr. Husch.
Python 8 Mr. Husch.
Python 13 Mr. Husch.
Input, Variables, and Mathematical Expressions
Basic 9 Mr. Husch.
BASIC 17 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.
Python Creating a calculator.
Presentation transcript:

Python 19 Mr. Husch

Aim Students will begin using return and = to assign variables to be the value of the function.

Save as 19 This Can be run in the shell

Comments You need to comment on each section of the code. In your comments you need to tell me where the function using the return command is. In your comments you need to tell me how is the formula using function at the end of the script.

19.5 Change the program so that it has the USER input their information. Add 3 pieces of information for the program to gather. Add the three additional pieces of information to the math problem at the end of the program, you can make the math problem anything that you want. Make comments telling about the changes that you made to the program.

Turn in Turn in both 19 and 19.5