Post

PythonPython

christina joce

Posted on 29th March 2024|16 views

0
votes

U In Python

What is U in python?

Answers
P
chris bons

Posted on 29th March 2024

The prefix 'u' which is in front of that quote means that a Unicode string happens to built. If you need to add special characters within the string, you can do so utilizing that Python Unicode-Escape encoding. The following example reveals how:

>>> u'Hii\u0020Everyone !'

    u'Hii Everyone !'

This escape sequence \u0020 includes the Unicode character by the hexadecimal value 0x0020 (that space character) in the assigned position.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos