Use the print() function to format the given words in the mentioned format. Display the ** separator between each string.
print()
**
Expected Output:
For example: print('Name', 'Is', 'James') will display Name**Is**James
print('Name', 'Is', 'James')
Name**Is**James
Hint:
Use the sep parameter of the print() function to define the separator symbol between each word.
sep
Solution:
print('My', 'Name', 'Is', 'James', sep='**')
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Hint:
Use the
sepparameter of theprint()function to define the separator symbol between each word.Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer