New course! Every coder should learn Generative AI!
Try a free lesson3 Answers
+ 4
print(' '.join([(bin(ord(c))[2:]).zfill(8) for c in 'Your text here']))
+ 3
Anna Shorter version:
print(*(bin(ord(c))[2:].zfill(8) for c in "Your text here"))
+ 1
thank you! anna, diego.