Can you help me on Strings? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you help me on Strings?

The man, the legend, Steve Jobs said a lot of cool stuff. Write a program to output his most famous quote in the following format: "Stay hungry, stay foolish" by Steve Jobs The output needs to include the double quotes and be exactly in the format shown above. Here is my attempt:print("Stay hungry,stay foolish" by Steve Jobs) ("Stay hungry,stay foolish" by Steve Jobs) Ps:i honestly don't know how i get this wrong so tell me what went wrong a hint if possible

12th Nov 2021, 8:11 AM
Shah Johan
3 Answers
+ 2
In most programming languages you need to escape quotes if you need also to print tham. In JavaScript we can use \ console.log("\"Stay hungry,stay foolish\" by Steve Jobs") I think you ask for python, you can try this, probably will work also. And tag language so you will get right answers.
12th Nov 2021, 8:50 AM
PanicS
PanicS - avatar
+ 1
Pls tag a language in which you want answer In python it's simple print ("Stay hungry , Stay foolish") print ("By Steve jobs") Thank you Shah Johan attach your code here
12th Nov 2021, 8:20 AM
Sâñtôsh
Sâñtôsh - avatar
0
Expected Output:"Stay hungry,stay foolish" by Steve jobs I tried your way but it didn't work,Sâñtôsh
12th Nov 2021, 8:46 AM
Shah Johan