- 1

Prectice 7.3

"Stay hungry, stay foolish" by steve

30th Sep 2021, 9:41 AM
Bharat Sharma
3 Answers
+ 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!
30th Sep 2021, 10:38 AM
Lothar
Lothar - avatar
+ 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!
1st Oct 2021, 5:53 PM
Lothar
Lothar - avatar
0
Have you ever practice this type of code
30th Sep 2021, 10:56 AM
Bharat Sharma