#create a list called continent
continent=['Africa','Antarctica','Asia','Australia','Southamerican','Nouthamerican','Europe']
print continent
#print only the five continent
print continent [5]
#update the continent on the list by adding two planet: 'earth' and 'mars'
continent.append("earth")
print continent
continent.append("Mars")
print continent
#4
continent[3]="pluto"
print continent
#5
print len("continent")
#6
galaxy=continent[0:5]
print galaxy
space=continent[5:9]
print space
#7
continent.insert(4,"mercury")
print continent
#8
for item in continent:
print continent
#9
continent_africa=['liberia,''guinea','ghana','congo','sierrialeon','zimbobwe','libya','togo','egypt','tunisia','somalia','algerie','benina','mila','niger','kenya','gabon','chad','nigeria']
print continent_africa
for counties in continent_africa:
print continent_africa
#10
space.pop(2)
#part two
liberia={'grandcapemount':'via','bong':'kpelle','grandgedeh':'Kremlin','grandbassa':'bass a','grandkru':'kru','maryland':'gebo','grandgee':'gerbo','sinoe':'sarpo','nimba':'mano'}
print liberia
for counties in liberia:
print liberia
#2
print Liberia["nimbi"]
#3
Liberia["fellah"]='Norman'
print Liberia
#4
street={}
print street
#5
street['Benson']=1
street['crown hall']=4
street['front']=7
street['waterside']=5
street['colemanhall']=3
print street
#6
del(liberia['maryland'])
print liberia
#7
street['draperline']=[8,3,9,11,2]
print street
#8
street['draperline'].sort()
print street
#9
house_thing={'table':'it is where we put food','pan':'is where we eat','pot':'is where we cook our food','chair':'is where we sit','bed':'is where we sleep'}
print house_thing
#10
print house_thing
print liberia
No comments:
Post a Comment