from struct import *number = 3string = 'Hello!'struct_fmt = "=b{}s".format(len(string))package = pack(struct_fmt,number,str.encode(string))
Standard input is empty
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!