i can do
i found my own answer in Python3:
x=b'foo'
then [y for y in x]
gives me [102, 111, 111]
. how can i reverse that so [98, 97, 114]
-> b'bar'
?i found my own answer in Python3:
bytes(bytearray([98, 97, 114]))
-> b'bar'
. there can be no answer in Python2 because b'anything'
cannot exist in Python2.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.