1==1.0 output True
Why print(1==1.0) output True? The former is int and the latter is float
When you compare values of 2 data types, the interpreter will automatically turn them into 1 type. So the output will always be true. But on languages like java, js, (and maybe c langs) they use === , equality and type checking
On a deeper level, it depends on how the types, specifically their comparison tools, are designed. You can't just compare everything in Python, very often you'll get a TypeError when you try. But for int and float, one cross-class comparison is defined, I guess for convenience.
Python — File Handling
Loop question, I've tried everything that I knew I just don't know. Please help me solve it out
Help me solve this (using loop)
What is wrong? Error on test.
Help me wiht python