Python 8 Mr. Husch.

Slides:



Advertisements
Similar presentations
Type accurately challenge! This is a starter activity and should take 2 minutes [ slide 1 ] 1.Can you type out the code in Code Box 2.1 with no errors.
Advertisements

COMP 171: Data Types John Barr. Review - What is Computer Science? Problem Solving  Recognizing Patterns  If you can find a pattern in the way you solve.
Asking the USER for values to use in a software 1 Input.
JAVA Practical Creating our first program 2. Source code file 3. Class file 4. Understanding the different parts of our program 5. Escape characters.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 8: Fun with strings.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 4: Writing programs.
CSD 340 (Blum)1 Starting JavaScript Homage to the Homage to the Square.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
NAME Python Programming Workbook Select a Lesson:
GCSE COMPUTER SCIENCE Practical Programming using Python
More about comments Review Single Line Comments The # sign is for comments. A comment is a line of text that Python won’t try to run as code. Its just.
what is computer programming?
A Playful Introduction to Programming by Jason R. Briggs
CS170 – Week 1 Lecture 3: Foundation Ismail abumuhfouz.
Lesson 1 An Introduction
Python 6 Mr. Husch.
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.
Unit 2 Smarter Programming.
Formatting Output.
Perl for Bioinformatics
Python 18 Mr. Husch.
CSE 390a Lecture 2 Exploring Shell Commands, Streams, and Redirection
Python Lesson 6 Mr. Kalmes.
Python 17 Mr. Husch.
Python Mr. Husch.
Learning to Program in Python
The backslash is used to escape characters that are used in Python
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.
Lesson Aims Vocabulary In this lesson you are going to:
Exploring Shell Commands, Streams, and Redirection
Spot the bug!.
Escape sequences escape sequence: A special sequence of characters used to represent certain special characters in a string. \t Inserts a tab in the.
Python 9 Mr. Husch.
Python 21 Mr. Husch.
Just Basic Lessons Mr. Kalmes.
Programming Fundamentals Lecture #3 Overview of Computer Programming
Basic Lessons 7&8 Mr. Husch.
Python 17 Mr. Husch.
Python Lessons 9 & 10 Mr. Husch.
CSE 390a Lecture 2 Exploring Shell Commands, Streams, and Redirection
Python 19 Mr. Husch.
Just Basic Lessons 14 Mr. Kalmes.
Python Lesson’S 1 & 2 Mr. Kalmes.
IPC144 Introduction to Programming Using C Week 4 – Lesson 2
Just Basic Lessons 7&8 Mr. Kalmes.
Beginning Python Programming
Python 16 Mr. Husch.
PYTHON LESSON 5 Mr. Kalmes.
Just Basic Lesson 12 Mr. Kalmes.
Just Basic Lessons 9 Mr. Kalmes.
Introduction to Python programming for KS3
Python Lessons 7 & 8 Mr. Kalmes.
Python 3 Mr. Husch.
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
Python Inputs Mr. Husch.
Python Lessons 13 & 14 Mr. Husch.
Java Lessons Mr. Kalmes.
Python 16 Mr. Husch.
Python 19 Mr. Husch.
Python Lessons 7 & 8 Mr. Husch.
Python 10 Mr. Husch.
Python 18 Mr. Husch.
Just Basic Lessons Mr. Kalmes.
Python 4 and 5 Mr. Husch.
Python 13 Mr. Husch.
Basic 9 Mr. Husch.
Just Basic Lessons 8 Mr. Kalmes.
Exploring Shell Commands, Streams, and Redirection
Getting Started in Python
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Python 8 Mr. Husch

Aim Explore new characters and symbols that are used in coding and that were seen in the previous lesson sequence of code. Examine new symbols for Python coding Understand symbols use in coding

Lesson overview Discuss the \n and “”” from last class. \n starts a new line “”” allows us to type as much as we want between the “”” These are called ESCAPE SEQUENCES. They allow you to put difficult to type things into a string. Some examples of escape sequences are \t (this will tab in a line), \\ (this will show one \ in the actual code), and \” so that you can put a quote inside a line of text without confusing the program.

Type in this code and run it, save as Lastname_Python8

Journal Questions 1) What are OTHER escape sequences? (search online) 2) What happens if you use triple ‘ instead of triple “? 3) Why might you use triple ‘? 4) How is it different if you print %r and %s? 5) What is the purpose of \t? 6) What happens when you use \\? 7) Log any errors in your design notebook and do not repeat them.