0

could anyone tell me the string input of this output "Stay hungry,stay foolish "by Steve Jobs

31st Jul 2021, 3:54 PM
Tawhidul Islam
Tawhidul Islam - avatar
5 Respuestas
+ 1
Tawhidul Islam This will print the quote as you presented it and whom stated it ( Steve Jobs ) x is a string as used here x = "\"Stay hungry,stay foolish\" by Steve Jobs" print(x)
31st Jul 2021, 6:40 PM
BroFar
BroFar - avatar
+ 7
When the string contains " " we can use \ print("Steve says: \"This is a quote\".")
31st Jul 2021, 4:02 PM
Lisa
Lisa - avatar
+ 5
Hi Tawhidul! There is an other method to print quoted text that you can use single quotes outside double quotes. This is what I mentioned above print(' "this is some text" with quotes') #ignore the first space Output: "this is some text" with quotes
31st Jul 2021, 5:17 PM
Python Learner
Python Learner - avatar
+ 1
thanks guys it really helped <redacted> so these things are a bit complicated but thank you all
1st Aug 2021, 6:35 AM
Tawhidul Islam
Tawhidul Islam - avatar
+ 1
thanks brofar
1st Aug 2021, 6:40 AM
Tawhidul Islam
Tawhidul Islam - avatar