.text python

What does .text do in Python?
text thingy in Python which converts html codes into readable text to work

Here is what the above code is Doing:
1. It’s creating a variable called ‘text’.
2. It’s setting the value of ‘text’ to be the string ‘This is some text.’
3. It’s printing the value of ‘text’ to the console.