You are viewing a single comment's thread. Return to all comments →
loved the usage of *a. Learnt something new instead of using join()
You can't use join, the list doesn't contain strings but integers.
you can use join...
print(' '.join(str(i) for i in array))
it can be used because python provides str() functions which can convert interger to strings