solarsys = ['태양', '수성', '금성', '지구', '화성', '목성', '토성', '천왕성', '해왕성', '지구']
planet = '지구'
pos = solarsys.index(planet)
print('%s은 태양계에서 %d번째에 위치하고 있습니다.' %(planet, pos))
pos = solarsys.index(planet, 5)
print('%s는 태양계에서 %d에 위치하고 있습니다.'%(planet,pos))
지구은 태양계에서 3번째에 위치하고 있습니다.
지구는 태양계에서 9에 위치하고 있습니다.