BINARY TO DECIMAL NUMBER CONVERSION PROGRAM IN PYTHON || BINARY TO DECIMAL || PYTHON PROGRAMMING

preview_player
Показать описание
This is the program to convert any binary number to equivalent decimal number.

--------------------------------------------------------------------------------------------------------------
PYTHON PROGRAMS

C PROGRAMMING

CORE JAVA TUTORIAL FOR BEGINNERS || LEARN CORE JAVA IN 15 HOURS || JAVA TUTORIALS FOR BEGINNERS

HTML TUTORIALS WITH IMPLEMENTATION || LEARN HTML IN 4 HOURS

LEARN CSS IN 3 HOURS || CASCADING STYLE SHEETS FOR BEGINNERS

JAVA SCRIPT FOR BEGINNERS IN 7 HOURS || LEARN JAVA SCRIPT IN 7 HOURS || JAVA SCRIPT

PYTHON TUTORIALS FOR BEGINNERS (తెలుగు లో)

PYTHON OOPS - MODULES - EXCEPTION HANDLING (తెలుగు లో)

PYTHON NUMPY TUTORIAL IN TELUGU (తెలుగు లో) || COMPLETE NUMPY TUTORIALS IN TELUGU

PYTHON PANDAS TUTORIAL IN TELUGU (తెలుగు లో) || COMPLETE PANDAS TUTORIALS IN TELUGU || DATA SCIENCE

MATPLOTLIB LIBRARY - PYTHON PROGRAMMING (ENGLISH)

PYTHON DATABASE CONNECTIVITY - MYSQL & MS-EXCEL

DATA STRUCTURES USING PYTHON (ENGLISH)

----------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Thanks dear sir! Love you from the north side of india that is Bihar!

thetopperinfo
Автор

Sir this could also be done without the use of reverse function, have a look:

b=input("Enter the binary: ")
l=len(str(b))
L=list(b)
v=0
m=0
for a in range(l):
m=m+1
p=l-m
v=v+int(L[a])*2**p
print(v)

kray_
Автор

Sir point numbers code example 12.13 some things

ranjith