Download presentation
Presentation is loading. Please wait.
Published byΗιονη Λαμέρας Modified over 6 years ago
1
The backslash is used to escape characters that are used in Python
The backslash is used to escape characters that are used in Python. When you want to print to the screen you need to wrap it in speech marks. But if you actually want to type in some speech marks you will need to put a backslash before it. What do you need to do if you want to print a backslash to the screen ?
2
Recap Functions:- Print () is a function it will print anything inside the brackets. They must be separated by a comma, and strings (bits of text) must be put in speech marks. Everything in the speech marks will be printed in order.
3
Functions (more in chapter 4)
[ slide 6 ] Functions (more in chapter 4) Output from the print function appears in blue text. print() is a function. We can put a variety of things inside the brackets to be printed to the screen . So far we have supplied bits of text but it can do much more ... Coders call text, strings.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.