Python Forum
Thread Rating:
  • 2 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Indentations
#2
(Apr-27-2020, 08:59 AM)macfanpl Wrote: Tabs are simply group of spaces (4) right?
Nope, tab (ASCII code 9) is different from 4 spaces (4 times ASCII 32). Also it depends on if you are on python2 or python3. Python3 will always produce error if you mix tab and spaces. https://stackoverflow.com/a/2034527/4046632
However you can set any editor to auto convert tab to 4 spaces.
And please, watch language!
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



Messages In This Thread
Indentations - by macfanpl - Apr-27-2020, 08:59 AM
RE: Indentations - by buran - Apr-27-2020, 09:14 AM
RE: Indentations - by macfanpl - Apr-27-2020, 09:35 AM
RE: Indentations - by pyzyx3qwerty - Apr-27-2020, 10:35 AM
RE: Indentations - by buran - Apr-27-2020, 09:40 AM
RE: Indentations - by macfanpl - Apr-27-2020, 10:25 AM
RE: Indentations - by macfanpl - Apr-27-2020, 10:47 AM
RE: Indentations - by pyzyx3qwerty - Apr-27-2020, 10:51 AM
RE: Indentations - by buran - Apr-27-2020, 10:55 AM
RE: Indentations - by macfanpl - Apr-27-2020, 02:25 PM
RE: Indentations - by buran - Apr-27-2020, 02:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  comment indentations Skaperen 12 9,375 Jan-29-2017, 06:56 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020