¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita3 Respuestas
+ 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.