1 / 9

Python Lessons 7 & 8

Python Lessons 7 &amp; 8. Mr . Kalmes. Aims. Explore new characters used in Python Explore new symbols used in Python Understand escape sequences. Python Lesson 7. Lesson 7 Activity A. Lesson 7 activity B. - Build a program that uses <br> and “””

gari
Télécharger la présentation

Python Lessons 7 &amp; 8

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Python Lessons 7 & 8 Mr. Kalmes

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

  3. Python Lesson 7

  4. Lesson 7 Activity A

  5. Lesson 7 activity B - Build a program that uses \n and “”” • It should list your class schedule and teachers. A-days should be done horizontally and B-days should be done vertically • You should also use the “”” to create a short paragraph describing your favorite class and why

  6. Python Lesson 8

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

  8. Lesson 8 Activity Copy the following code and turn it in to the drop box when you are finished

  9. Exit Slip Questions • What does the \n do? • What do the triple “ do to the code? • What does \t and \\ do?

More Related