logo-MindMajix
PostPythonPython
christina joce

Posted on 23rd June 2024|17 views

0
votes

U In Python

What is U in python?

1 answers
Answers
P
chris bons

Posted on 23rd June 2024| views

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
Name
Course *
Email *
Phone Number