Hello! Somebody can help me. please! | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Hello! Somebody can help me. please!

Fix the given Python code to generate the expected output. print('I'm learning Python!') print("A number enclosed in double quotes: "42"")

28th Oct 2021, 7:52 PM
Dia Abdoulaye
Dia Abdoulaye - avatar
4 ответов
+ 2
Hint: Check the lesson about escape character \ again! (lesson 8.1, Python Core)
28th Oct 2021, 8:03 PM
Lisa
Lisa - avatar
+ 1
Yes i didn't noticed that. It was my first time to use this app. Anyway thanks
28th Oct 2021, 8:07 PM
Dia Abdoulaye
Dia Abdoulaye - avatar
+ 1
print(" I'm... ") print('... "42" ')
28th Oct 2021, 8:41 PM
Solo
Solo - avatar
+ 1
Using the same quotes every where will confuse python so use single if your are using double in your sentence and vice versa, and what if you want use both then escape character is what helps you.
29th Oct 2021, 4:18 AM
Prabhas Koya