Write a Python program that displays your name, age, and address on three different lines.

Write a Python program that displays your name, age, and address on three different lines.

1
2
3
4
5
6
def personal_details():
    name, age = "Simon", 19
    address = "Bangalore, Karnataka, India"
    print("Name: {}\nAge: {}\nAddress: {}".format(name, age, address))

personal_details()

Final output

Leave a Comment