Oct-25-2020, 07:21 AM
why do you need such function in a first place
and of course you can always can do, just
spam = 2 eggs = 3 foo = 2 bar = spam == eggs print(bar) bar = spam == foo print(bar)
Output:False
True
Note, these are bool values True
and False
, not strings "True"
and "False"
and of course you can always can do, just
if spam == eggs: # do samething
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