of text such as asciiwhich can be represented with byte per character (richer unicode text generally requires unicode stringswhich are still immutablethe bytear ray type is also available in python and as back-port from xbut it does not enforce the strict text/binary distinction there that it does in bytearrays in action let' take quick tour we can create bytearray objects by calling the bytearray builtin in python xany string may be used to initializecreation in mutable sequence of small ( ints 'spamc bytearray(sc bytearray( 'spam' back-port from in =in (strin python xan encoding name or byte string is requiredbecause text and binary strings do not mix (though byte strings may reflect encoded unicode text)creation in xtext/binary do not mix 'spamc bytearray(stypeerrorstring argument without an encoding bytearray( 'latin ' bytearray( 'spam' content-specific type in 'spamc bytearray(bc bytearray( 'spam' !in (bytes/stronce createdbytearray objects are sequences of small integers like bytes and are mutable like liststhough they require an integer for index assignmentsnot string (all of the following is continuation of this session and is run under python unless otherwise noted--see comments for usage notes)mutablebut must assign intsnot strings [ [ 'xtypeerroran integer is required [ 'xtypeerroran integer is required this and the next work in [ ord(' ' use ord(to get character' ordinal using / bytearray objects