Use the print() function to format the given words in the mentioned format. Display the ** separator between each string.
Use the print() function to format the given words in the mentioned format. Display the ** separator between each string.
Use the print() function to format the given words in the mentioned format. Display the ** separator between each string.
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.
'Name', 'Is', 'James'
For example: print('Name', 'Is', 'James') will display Name**Is**James
Use the sep parameter of the print() function to define the separator symbol between each word.
print('My', 'Name', 'Is', 'James', sep='**')
My**Name**Is**James
First understand the algorithm carefully. Then study the program line-by-line and compare it with the output. Finally, review the explanation section to strengthen your logic and programming understanding.
Rewrite the program without looking at the code. Modify values, conditions or logic and run it again. This helps improve confidence and strengthens coding skills much faster.