Program: Dec to Bin Conversion -Python Programming

Veröffentlicht am: 23 August 2021
auf dem Kanal: Softwoodcoder
103
2

This tutorial is about converting a decimal into binary. This is the simple & easiest way to find any decimal no 's binary number.

As we know binary number is just about 0(s) and 1(s) so we are finding a reminder and putting it in a list and at last reversing a list (simple as we do on pen and papper with proper method).

Converting into intergers:
Converting list into integer in directly not possible as int(list) so we had use a technique, in which we iterating each element of list and converting into string and concatenating it with past string.

Finally our is look as we want but if you left it without typecasting then it would be of string type. so In order to make it proper integer we did int(string).

Thanks for watching :)
#Python #programs


Auf dieser Seite können Sie das Online-Video Program: Dec to Bin Conversion -Python Programming mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Softwoodcoder 23 August 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 103 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!