0

Fix the given code to output I'm a programmer. Hint Escape the single quote inside the string.

I find this very complicated. I want a solution to this issue.

5th Jul 2022, 3:58 PM
Zynab Naser
8 Answers
+ 5
/ is not backslash character, its division operator. \ is backslash character.
5th Jul 2022, 4:20 PM
Jayakrishna šŸ‡®šŸ‡³
+ 5
\' Example: print('Hello \'World \'') Output: Hello 'World'
5th Jul 2022, 4:03 PM
SomeAwesome
SomeAwesome - avatar
+ 2
Attempts?
5th Jul 2022, 4:01 PM
AĶ¢J
AĶ¢J - avatar
+ 1
What did you try? So we can give you tips, just giving you the solution wont make you better
5th Jul 2022, 4:02 PM
Janne
Janne - avatar
+ 1
Thanks for you guys
6th Jul 2022, 4:32 PM
Zynab Naser
0
I've tried a lot like Print ("I/'m a programmer") Print ("I' /'m a programmer") I really don't understand how to use a backslash
5th Jul 2022, 4:18 PM
Zynab Naser
0
\' Example: print('Hello \'World \'') Output: Hello 'World'
1st Dec 2022, 9:56 AM
Vidhi Gujral
- 5
print("I'm a programmer")
6th Jul 2022, 3:00 PM
N. Vimukthi Dilshan Fernando