Posted on 28th March 2024
Bytes within Python 2.7 is similar to str. Hence, the variable admitted as bytes is intrinsically a string.
Python 2.7.10 (default, Jan 21 2017, 04:15:00) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> W = x'yz'
>>> W
'yz'
>>> type(W)
<type 'str'>
If you are looking for the Python certification course, you can check out this Python course by Mindmajix.
STILL GOT QUERIES?