Q:

Use the print() function to format the given words in the mentioned format. Display the ** separator between each string using Python programming

0

Display three string “Name”, “Is”, “James” as “Name**Is**James”

Use the print() function to format the given words in the mentioned format. Display the ** separator between each string.

Expected Output:

For example: print('Name', 'Is', 'James') will display Name**Is**James

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Hint:

Use the sep parameter of the print() function to define the separator symbol between each word.

Solution:

print('My', 'Name', 'Is', 'James', sep='**')

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now