Q:

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

belongs to collection: Python Input and Output Exercises

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)

Convert Decimal number to octal using print() outp... >>
<< Write a Python program to accept two numbers from ...