Nearby2

Find the shortest routes in a network of nearby stars
import math a=["Sol","A Centauri","E Eridani","61 Cygni","E Indi","Tau Ceti","40 Eridani"] x=[0,-1.643,6.197,6.489,5.658,10.28,7.195] y=[0,1.374,8.294,-6.109,-3.157,5.018,14.63] z=[0,-3.838,-1.725,7.152,-9.896,-3.267,-2.191] for i in range(0,6): for w in range(i+1,6): print round(math.sqrt((x[i]-x[w])**2 + (y[i]-y[w])**2 + (z[i]-z[w])**2),3),"light-years from ", a[i],"to", a[w]
 * 1) !/usr/bin/python