Skip to content

Instantly share code, notes, and snippets.

@emilgaripov
Created May 4, 2020 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilgaripov/3a244d1642c2d3b3a501b0211677b2d7 to your computer and use it in GitHub Desktop.
Save emilgaripov/3a244d1642c2d3b3a501b0211677b2d7 to your computer and use it in GitHub Desktop.
Type Error Message
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-24a72a1aa1d6> in <module>
12 mac_ = mac.strip().split(':')
13 mac_ = ''.join(mac_)
---> 14 mac_ = bin(mac_)
15 mac_ = mac_.lstrip('0b')
16 print(mac_)
TypeError: 'str' object cannot be interpreted as an integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment