Animals
Art
Books
Education
Films
Food & Drink
Funny
Gaming
GIFS
History
News
Photography
Quotes
Random
Science
Sports
Technology
Television
Torrent
binstr = input('enter a binary string ')
binstr = binstr[::-1]
ind = 0
decimal = 0
for bit in binstr:
if bit == '1':
decimal = decimal + 2**ind
ind = ind + 1
print(decimal)
Text
Image/Gif
Care to way in
Image/Gif URL
Caption (Optional)
How do you feel about this?
OH SNAP:
SUCCESSFULLY VENTED ASWELL
VENT ASWELL!!!