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
PyWeekD
Find common characters between two strings
quck sort
pyCustomEnum
Calculator.py
Find numbers with given sum of digits
shuru12
Organizing Transactions
10 25 58
147