Use the print() function to format the given words in the mentioned format. Display the ** separator between each string.
Python / Fundamentals of Python
792
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.
Given Input:
'Name', 'Is', 'James'
Expected Output:
For example: print('Name', 'Is', 'James') will display Name**Is**James
Hint:
Use the sep
parameter of the print()
function to define the separator symbol between each word.
Program:
print('My', 'Name', 'Is', 'James', sep='**')
Output:
My**Name**Is**James
This Particular section is dedicated to Programs only. If you want learn more about Python. Then you can visit below links to get more depth on this subject.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS