2. You can check if a email is valid by the checkdnsrr() function. It checks the email’s host address if it’s a valid DNS record.
Should this function really be used for email validation?
5. Easily unpack numeric arrays using the well-know function list <snip> Have you ever seen better code for swapping two variables’ values !?
Yes, try Python: a, b = b, a