Why does this example show the letter u in the terminal?

The example is from here:
https://www.pythoncentral.io/sqlalchemy-orm-examples/
does u stand for user ? Why does it get prepended on the result ?

Is this just how the terminal displays it ?

It means basically two things - this is unicode string and example is from python 2. More about it can be found ie. on 3. An Informal Introduction to Python — Python 2.7.18 documentation

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.