Dictionary2 Example in Python

name=input("enter your name")
age=int(input("enter your age"))
fee=float(input("enter your fee"))
student={'name':name,'age':age,'fee':fee}
print(student.keys())
print(student.values())
print(student.get('age'))

Leave a Reply

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