MENU
Question -

Explain Unicode String with example.



Answer -

Normal strings in Python are stored internally as 8-bit ASCII, while Unicode strings are stored as 16- bit Unicode. This allows for a more varied set of characters, including special characters from most languages in the world.
Example…….
#!/usr/bin/python
print u’Hello, world!’

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×