Mengakses Elemen dari Kamus Python
# welcome to softhunt.net
# Python program to demonstrate
# accessing a element from a Dictionary
# Creating a Dictionary
Dictionary = {0: 'Softhunt', 1: '.net', 2: 'By Ranjeet', 'user': 'Greetings to you'}
print("Dictionary", Dictionary)
# accessing a element using key
print("Accessing a element using key:", Dictionary['user'])
# accessing a element using key
print("Accessing a element using key:", Dictionary[2])
Outrageous Ostrich