Convert String into Binary Sequence | GeeksforGeeks

preview_player
Показать описание

This video is contributed by Anant Patni.

Please Like, Comment and Share the Video among your friends.

Install our Android App:

If you wish, translate into local language and help us reach millions of other geeks:

Follow us on Facebook:

And Twitter:

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

very clear explanation. Thank you sir.

bandewalekeerthi
Автор

Thank you so much for this amazing video

shivanisingh
Автор

one problem, if something like a period "." is used, it won't include the two zeros supposed to be in the front.

rkku
Автор

bro is there no function to add a char in start of string

usama
Автор

What is a bit string? Unable to understand this. Am a bit new to programming. Please can you explain this with an example.

ganeshs
Автор

This is Python. Things can be done in a much easier way:


import binascii
name="hello world"
print(bin(int(binascii.hexlify(name), 16))


Three lines is all it takes. Why would you take so much of a round about to simply convert a string into a binary sequence?

PrajwalDsouza
Автор

Brother if you don't mind speak louder

pruthvirajk