Skip to content

Instantly share code, notes, and snippets.

@siva2k16
Created April 30, 2020 07:30
#list = []
#tuple = ()
#sets = {}
#dictionary = {}
sportslist = ['cricket','hockey','tennis','badminton']
vegetablestuple = ('brinjal','tomato','beetroot','drumstick')
foodmenuset = {'biryani','roti','rice','curd'}
dicthotels = {'india':'Delhi','china':'beijing','srilanka':'colombo','pakistan':'islamabad'}
dicthotelscities = {'india':['Delhi','chennai','mumbai'],'china':['beijing','shangai']}
print('sportslist')
print('_______________')
for name in sportslist:
print(name)
print('vegetablestuple')
print('_______________')
for name in vegetablestuple:
print(name)
print('dicthotels')
print('_______________')
for key,value in dicthotels.items():
print(key)
print(value)
print('dicthotelscities')
print('_______________')
for key,value in dicthotelscities.items():
print(key)
for city in value:
print(city)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment