Apr-09-2020, 01:52 PM
it depends if you are running in interactive mode e.g.
>>> car = 'BMW' >>> car == 'BMW' True >>> car == 'Renault' Falseif you are not in interactive mode, you need to print in order to see the result, e.g. in yourfile.py:
car = 'BMW' print(car == 'BMW') print(car == 'Renault')
Output:True
False
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs