encode() String Function
encode() The string encode() method returns encoded version of the given string.
Since Python 3.0, strings are stored as Unicode, i.e. each character in the string is represented by a code point. So, each string is just a sequence of Unicode code points.
For...
Showing posts with label File Handling. Show all posts
Showing posts with label File Handling. Show all posts
What is a file?
Every file in the computer is just a series of bytes, which is arranged one after the other.
All the bytes are of 8 bits, Hence each byte is a number between 0 and 255.
As we discussed in the above point, every file consists of bytes. So, each file can be considered as a binary file.
But...