When writing Python, beware of mixing tabs and spaces in a single file.
Most python compilers will give errors if both tabs and spaces are used in a single file and some compilers will even generate incorrect output!
This is because tabs and spaces mixture might look correctly indented to the human eye but Python compiler will treat tab as a single space.
So, the indentation will look very different to the Python compiler.
So do not mix tabs and spaces for indentation ever in Python code!
Got a thought to share or found a bug in the code? We'd love to hear from you: