Computer Science, asked by njana812, 5 hours ago

Which of the following statements will print the following? hello-how-are-you print('hello', 'how', 'are', 'you') print('hello', 'how', 'are', 'you' + '-' * 4) print('hello-'+ 'how-are-you') print ('hello' + '-' + 'how' + '-' + 'are' + '-' + 'you') a. B, C b. A, D c. A, C d. C, D

Answers

Answered by sasramtasanvi
2

Answer:

I hope this will help you

Attachments:
Answered by HrishikeshSangha
3

Answer:-

In python print function is used to print the values in the output.

In the first case, the output will be hello how are you which does not satisfy the given condition as the hyphen is missing.

In the second case, the output will be hello how are you ---- which also does not meet the current condition.

For the third case, the output will be hello-how-are-you and also for the fourth case the output will be hello-how-are-you

As the third and fourth statements satisfy the conditions these are correct options.

Similar questions