DEV Community

Discussion on: 15 Python tips and tricks every beginner should know !

aidri profile image
AIDRI Author

Yes! For the first trick, it is a very cool property of the set function to get unique values.
For the second trick, I explained in my post that this built-in function is much slower, but it is probably easier to remember, I admit :)

Some comments have been hidden by the post's author - find out more