+ 2

Please someone should help me out,I'm a beginner

Code, "Stay hungry,stay foolish" by Steve Jobs. Just as it is shown,i have been trying but couldnt get it.

27th Aug 2021, 1:26 PM
Claire Excel
Claire Excel - avatar
14 Respuestas
+ 3
u can use \" print("stay hungry,stay foolish\"by Steve Jobs ")
27th Aug 2021, 1:41 PM
Pariket Thakur
Pariket Thakur - avatar
+ 1
print("Stay hungry, stay foolish - by Steve Jobs") #not capitalize the first letter
27th Aug 2021, 1:43 PM
SoloProg
SoloProg - avatar
+ 1
one more example with the escape character. print(“\”Stay hungry,stay foolish\” by steve jobs.”)
27th Aug 2021, 1:49 PM
you are smart. you are brave.
you are smart. you are brave. - avatar
0
Share your trail so that we can tell your mistakes
27th Aug 2021, 1:28 PM
Pariket Thakur
Pariket Thakur - avatar
0
The above is my trial
27th Aug 2021, 1:30 PM
Claire Excel
Claire Excel - avatar
0
Oh..still wrong
27th Aug 2021, 1:37 PM
Claire Excel
Claire Excel - avatar
0
Thank you guys .. I got it🙏🙏🙏
27th Aug 2021, 1:46 PM
Claire Excel
Claire Excel - avatar
0
Special Thanks Andrew..🙏🙏
27th Aug 2021, 1:46 PM
Claire Excel
Claire Excel - avatar
0
Claire Excel you’re welcome. i’m glad i was able to assist. good luck to you on your journey!
27th Aug 2021, 1:51 PM
you are smart. you are brave.
you are smart. you are brave. - avatar
0
print("Stay hungry, stay foolish-by Steve Jobs") we should not capital first letter
29th Aug 2021, 4:05 AM
Siriki Lohit
Siriki Lohit - avatar
- 1
print("Stay hungry,stay foolish" "by Steve Jobs")
27th Aug 2021, 1:30 PM
Claire Excel
Claire Excel - avatar
- 1
Print("Stay hungry, stay foolish - by Steve Jobs")
27th Aug 2021, 1:33 PM
Sacar
Sacar - avatar
- 2
here are some examples for you. example 1 using single and double quotes. print(‘“Stay hungry,stay foolish” by steve jobs.’) example 2 using comma to concatenate two strings. print(‘“Stay hungry,stay foolish”’, “by steve jobs.”) example 3 using f-string string_var=‘“Stay hungry,stay foolish” by steve jobs.’ print(f’{string_var}’) i hope these help and good luck.
27th Aug 2021, 1:40 PM
you are smart. you are brave.
you are smart. you are brave. - avatar
- 2
def align(left, right, width): print(f"{left}{' '*(width-(len(str(left) + str(right))))} {right}") left = "Stay hungry, stay foolish" right = "Steve Jobs" print(left) align('', '-'+right, len(left)+8)
27th Aug 2021, 3:52 PM
Sacar
Sacar - avatar