Skip to content

Instantly share code, notes, and snippets.

@emilgaripov
Created May 4, 2020 11:26
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/0307ef8e607c96ad72ba73fe20d7774b to your computer and use it in GitHub Desktop.
Save emilgaripov/0307ef8e607c96ad72ba73fe20d7774b to your computer and use it in GitHub Desktop.
Print Statement_2
AAAABBBBCCCC <class 'str'>
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-ceea58998966> in <module>
13 mac_ = ''.join(mac_)
14 print(mac_, type(mac_))
---> 15 mac_ = bin(mac_)
16 mac_ = mac_.lstrip('0b')
17 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