Say for example I want to print ‘I can fly’, including the quotations. How to write the print statement?
Asked
Active
Viewed 34 times
1 Answers
0
you could do this:
print(" 'hi' ")
output: 'hi'
system123456
- 626
- 1
- 7
- 15
-
Say I want to type ‘this boy’s book’ . I have seen people here using ‘\’ in the print statement. How and where to use ‘\’? – Mythili Apr 10 '19 at 17:43
-
Anytime you need to [escape a character](https://docs.python.org/3/reference/lexical_analysis.html#literals) – G. Anderson Apr 10 '19 at 17:55