Skip to content

Instantly share code, notes, and snippets.

Created April 2, 2012 14:34
Show Gist options
  • Save anonymous/2283877 to your computer and use it in GitHub Desktop.
Save anonymous/2283877 to your computer and use it in GitHub Desktop.
routes = []
total_price = 0.0
for id_price in id_flights:
route, price = id_price.split('@')
routes.append(route)
total_price += float(price)
route = "; ".join(routes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment