Write a Python program to display your details like name, age, address


Introduction

Write a Python program to display your details like name, age, address. I have used python 3.7 compiler for debugging purpose.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. def personal_details():
  2. name, age = "Rohit", 25
  3. address = "Mumbai, Maharashtra, India"
  4. print("Name: {}\nAge: {}\nAddress: {}".format(name, age, address))
  5.  
  6. personal_details()

Result

python language techstudy.org

     





Related Topics




Popular Posts