How do I write something like (i’m sad) without Python saying it’s wrong? I tried to put this simbol / is it wrong? Thanks! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I write something like (i’m sad) without Python saying it’s wrong? I tried to put this simbol / is it wrong? Thanks!

Help please, I don’t understand and need guidance. Will someone please tell me how to write (i’m sad) or something with (i’m) in it? Thanks! 🙂 Also please tell me what i’m doing wrong. My language is Python.

4th Mar 2019, 5:10 PM
Sarah Benchimol
Sarah Benchimol - avatar
3 Answers
+ 1
Maybe you want to print : 'I\'m sad' That will work, I think...
4th Mar 2019, 5:46 PM
Théophile
Théophile - avatar
+ 1
print("I'm sad") print('Hi sad, I\'m Diego')
4th Mar 2019, 8:42 PM
Diego
Diego - avatar
0
print('"i\'m sad"') can give you the desired output
6th Mar 2019, 4:55 AM
chandra b
chandra b - avatar