Created
May 4, 2020 11:26
-
-
Save emilgaripov/0307ef8e607c96ad72ba73fe20d7774b to your computer and use it in GitHub Desktop.
Print Statement_2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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