Presentation is loading. Please wait.

Presentation is loading. Please wait.

Python Lessons 7 & 8 Mr. Husch.

Similar presentations


Presentation on theme: "Python Lessons 7 & 8 Mr. Husch."— Presentation transcript:

1 Python Lessons 7 & 8 Mr. Husch

2 Aims Explore new characters used in Python
Explore new symbols used in Python Understand escape sequences

3 Python Lesson 7

4 Lesson 7 lastnametest7

5 Answer these as #comments in test7
What does the \n do? What do the triple “ do to the code?

6 Lesson 7 lastname7 - Build a program that uses \n and “””
It should list your class schedule and teachers. You should also use the “”” to create a short paragraph describing your favorite class and why

7 Python Lesson 8

8 Escape Sequences Escape Sequences: 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) \” allows you to put a double quote in the text \’ allows you to put a single quote in the text

9 Lesson 8 Lastname8 Answer these as #comments at the bottom of this program. 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 \\?


Download ppt "Python Lessons 7 & 8 Mr. Husch."

Similar presentations


Ads by Google