- 1
Prectice 7.3
"Stay hungry, stay foolish" by steve
3 odpowiedzi
+ 6
Bharat Sharma ,
this is a very basic task to solve. please try solving it by yourself. if you have problems in understanding something, give a more specific post.
thanks!
+ 3
Bharat Sharma ,
what we should do is to make a code that outputs the mentioned text:
"Stay hungry, stay foolish" by Steve Jobs
to accomplish this, we need to use the print() function, and to set the complete string in quotes. this looks like:
print(""Stay hungry, stay foolish" by Steve Jobs")
but this code creates an error because we have outer quotes and inside of them inner quotes. to get rid of this problem we can "escape" the inner quotes with backslashes like this:
print("\"Stay hungry, stay foolish\" by Steve Jobs")
this code runs now properly. this is all behind of this exercise
happy coding and good success!
0
Have you ever practice this type of code