What is the most convenient way to join a list of ints to form a str without spaces?
For example [1, 2, 3] will turn '1,2,3'. (without spaces).
I know that ','.join([1, 2, 3]) would raise a TypeError.
print ','.join(map(str,[1, 2, 3])) #Prints: 1,2,3
Mapping str prevents the TypeError
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With