memoryand its characters may not fit in bytes anyhow text size as we saw by example in under unicode single character does not necessarily map directly to single byteeither when encoded in file or when stored in memory even characters in simple -bit ascii text may not map to bytes --utf- uses multiple bytes per character in filesand python may allocate or bytes per character in memory thinking in terms of characters allows us to abstract away the details of external and internal storage the key point herethoughis that encoding pertains mostly to files and transfers once loaded into python stringtext in memory has no notion of an "encoding,and is simply sequence of unicode characters ( code pointsstored generically in your scriptthat string is accessed as python string object--the next section' topic python' string types at more concrete levelthe python language provides string data types to represent character text in your scripts the string types you will use in your scripts depend upon the version of python you're using python has general string type for representing binary data and simple -bit text like asciialong with specific type for representing richer unicode textstr for representing -bit text and binary data unicode for representing decoded unicode text python ' two string types are different (unicode allows for the extra size of some unicode characters and has extra support for encoding and decoding)but their operation sets largely overlap the str string type in is used for text that can be represented with -bit bytes (including ascii and latin- )as well as binary data that represents absolute byte values by contrastpython comes with three string object types--one for textual data and two for binary datastr for representing decoded unicode text (including asciibytes for representing binary data (including encoded textbytearraya mutable flavor of the bytes type as mentioned earlierbytearray is also available in python and but it' simply back-port from with less content-specific behavior and is generally considered type string basics