<filename>problem24.py
# Lexicographic permutations
# Answer: 2783915460

import itertools

print(''.join(list(itertools.permutations(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']))[999999]))

<filename>problem24.py
# Lexicographic permutations
# Answer: 2783915460

import itertools

print(''.join(list(itertools.permutations(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']))[999999]))

# Lexicographic permutations # Answer: 2783915460