Make delicious recipes!

Indentation Trap



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!




Like us on Facebook to remain in touch
with the latest in technology and tutorials!


Got a thought to share or found a
bug in the code?
We'd love to hear from you:

Name:
Email: (Your email is not shared with anybody)
Comment:

Facebook comments:

Site Owner: Sachin Goyal