2018年1月8日 星期一

Python: Display your details like name, age, address in three different lines

Python: Display your details like name, age, address in three different lines

Python Basic: Exercise-37 with Solution

Write a Python program to display your details like name, age, address in three different lines.
Sample Solution:-
def personal_details():
    name, age = "Simon", 19
    address = "Bangalore, Karnataka, India"
    print("Name: {}\nAge: {}\nAddress: {}".format(name, age, address))

personal_details()

========== RESTART: F:/Python_APSC/py-ex-basic-37.py =========
Name: Simon
Age: 19
Address: Bangalore, Karnataka, India
>>> 

沒有留言:

張貼留言

RFID TI 培訓影片系列

RFID TI 培訓影片系列  https://www.ti.com/zh-tw/video/series/rfid.html 培訓影片系列 RFID 隨著創新技術日益發展,RFID 和 RF 術語越來越容易讓人混淆。本訓練系列詳細介紹了使用案例、權衡技術優缺點,讓您清楚知道該選...