Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Binary number into Decimal
A = input() B = [ ] n = len(A) for x in range(0, n): if A[x]== "0": N = 0 else: N = 2**(n-(x+1)) B.append(N) from math import * print ( floor(fsum(B)))
run
|
edit
|
history
|
help
0
H.W5
Ugly number
linked_lists_2+decisions
Lcm and hcf
T
Breadth-First Path Finding
PYTHON 3 ÖDEV :)
jsa
CalcV3 with PLY
unhex 16 bit word python (string to hex)