61 True - if the number is pandigital with those parameters
62 False - the latter
63 """
64 return set(sorted(set(list(str(n))))) == set(sorted(set([str(i) for i in range(0, until+1)]))) 65
66# Credits to Project Nayuki
67#
Although there is nothing syntactically wrong with this code, it is hard to read and can be simplified to a set comprehension. Using set comprehension is more performant since there is no need to create a transient list.
mapping = set([num for num in my_magic_nums])
mapping = {num for num in my_magic_nums}