Write a Program to Display Your Name in Python

Let’s have a glance at how to print a name in python.

Write a Program to Display Your Name in Python

def print_details():
    name= "Mike"
    print('Name: ' + name)

print_details()

Output

Name: Mike

Leave a Comment

Your email address will not be published. Required fields are marked *