0

Say for example I want to print ‘I can fly’, including the quotations. How to write the print statement?

Mythili
  • 1
  • 2

1 Answers1

0

you could do this:

print(" 'hi' ")

output: 'hi'

Hass786123
  • 666
  • 2
  • 7
  • 16
  • 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