Hey! If I wanted to type a word that has an apostrophe like: what's up how would I do it? Because print('what's up') won't work... since there's two apostrophes! | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Hey! If I wanted to type a word that has an apostrophe like: what's up how would I do it? Because print('what's up') won't work... since there's two apostrophes!

3rd Jan 2017, 4:09 AM
Tony Conte
3 ответов
+ 1
\'
3rd Jan 2017, 4:10 AM
Ondřej Doněk
Ondřej Doněk - avatar
+ 1
print('what\'s up')
3rd Jan 2017, 4:18 AM
jakt
jakt - avatar
+ 1
use it print('''what's up''')
3rd Jan 2017, 7:02 AM
ali.gh
ali.gh - avatar