+ 3
Can you make it work 2?
i want to write my name, and the orogram should give me it in binary https://code.sololearn.com/cYvnlPdpwF39/?ref=app
9 Answers
+ 2
I'm Sorry for not useful question. But why do you need binary text? :-)
print("\u0420\u043e\u0441\u0441\u0438\u044f")
My Country's name ;-)
text="Đ ĐŸŃŃĐžŃ"
for i in text:
print(i,'-',hex(ord(i)))
Unicode is not binary, it is hexadecimal...
As you wish it can be in binary:
text="Đ ĐŸŃŃĐžŃ"
for i in text:
print(i,'-',bin(ord(i)))
+ 4
a. this code is one of my ways to practice files.
b. what about the binary?
+ 4
DIMON2101 because it's cool.
and im sorry if this question is too much, but there is still a problem
https://code.sololearn.com/cqIuITSQ9473/?ref=app
+ 3
thanks
+ 3
my name is Misgav Yosef
and check the link, is should be in a binary code the letter "b"?
+ 2
First, I would recommend to use for development no files first, just ask for input and print it after
+ 2
It worx well:
x =input('Enter some text: ')
print()
for i in x:
print(i,'-',bin(ord(i)))
+ 2
I can not understand how your name sounds...
So good luck, man ))))))))
+ 2
Yes, of course, Misgav Yosef! So it can be removed:
print(YourTextVariable[2::])