Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 14 Online
OpenStudy (anonymous):

Can anyone do this for me? Actually jack is far better than me here 'lol'. Ok so here is the problem. 1.Take the sentence: All work and no play makes Jack a dull boy. Store each word in a separate variable, then print out the sentence on one line using print.

OpenStudy (anonymous):

yea its python. I want each word assigned to a variable name. Example x = All, y=work, etc. Then call a print statement to print all the values in one line. The output should be like the way it is. 'All work and no play makes jack a dull boy' Thanks!!

OpenStudy (microbot):

@kem is this question still unanswered?

OpenStudy (anonymous):

yea still unanswered.

OpenStudy (lopus):

is easy, assign each word to a variable manually p="all" q="work" r=.... then you print p, " ", q, " " etc

OpenStudy (anonymous):

Thanks lopus!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!