Skip to content

Commit

Permalink
Update city_permutation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo-Alanis-Garcia authored Dec 8, 2023
1 parent de01c10 commit 7cfece2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion travelpy/city_permutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ def city_permutation(cities):
"""Function that generates all the permutations of the cities to be traveled"""
all_permutations = permutations(range(1, cities))
for permutation in all_permutations:
yield (0,) + permutation + (0,)
yield (0,) + permutation + (0,)

0 comments on commit 7cfece2

Please sign in to comment.