Presentation is loading. Please wait.

Presentation is loading. Please wait.

Python 8 Mr. Husch.

Similar presentations


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

1 Python 8 Mr. Husch

2 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

3 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.

4 Type in this code and run it, save as Lastname_Python8

5 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.


Download ppt "Python 8 Mr. Husch."

Similar presentations


Ads by Google