Post

@PythonPr Output: True, str() casts 10 to "10", so the equality check passes.
English

Hints are here, guys 🙂
Before answering, think about what "str" means in Python.
"str" is short for string it’s a built in function that converts a value into text.
It’s one of the simplest but most important functions in Python.
You can pass almost anything into str() -> a number, a list, a boolean… and it returns the string version of that value.
This is super useful when printing, comparing, or formatting values.
Think about the comparison 🧐
a == b -> different types
a == str(b) -> both strings
With these hints… what do you think the answer is, guys 🙂
GIF
English

@PythonPr It will print True because "b" has been casted to string in the print statement.
English

@PythonPr True
Because we explicitly changing int b into string b
English

@PythonPr My answer is true, as at the end we are telling to transform that int into a str, so it makes it True
English































