Not able to print statements with 'Apostrophe' in it in Python. Invalid syntax error

前端 未结 5 1975
眼角桃花
眼角桃花 2020-12-03 17:50

Eg.

when iam trying to write something like below which uses an apostrophe in the sentence,

print(\'\'I am jack\'s raging bile duct\'\')
5条回答
  •  盖世英雄少女心
    2020-12-03 18:11

    Use of double quotes will do the trick. print("I am jack's raging bile duct") I tried it and works good. Happy coding!

提交回复
热议问题