i saw that if i want to send in bytes something, i have to write s.send(b'your text'). That is good so far. But what happens if 'your text' is stored in a variable (like a = 'your text') and i want to send the variable a in bytes?
I assumes and tested:
s.send(b 'a') #does not work,it will send only 'a' as byte
s.send(b(a)) #does not work, error 'b is not defined'