0
could anyone tell me the string input of this output "Stay hungry,stay foolish "by Steve Jobs
5 ответов
+ 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)
+ 7
When the string contains " " we can use \
print("Steve says: \"This is a quote\".")
+ 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
+ 1
thanks guys it really helped <redacted> so these things are a bit complicated but thank you all
+ 1
thanks brofar