Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Append inside for?
#9
i understand the purpose of whitespace in python.

i understand that i'll have to convert spaces to tabs if i copy someone else's code of the internet. I'm ok with that.

I don't see an issue with how my code looks in other editors. Every ascii-capable device can display tabs.

I prefer tabs because it's visually more reliable.

With spaces, could be 3, or 4, or 5... hard to tell. Easier to make a mistake.

Since a tab is a big chunk of whitespace, i'm less likely to confuse 1 tab from 2 tabs.

Also one tab is less typing than 4 spaces.

Personal preference. Python supports both. vscode supports both. I'm allowed to have my personal preference.
Reply


Messages In This Thread
Append inside for? - by johnywhy - Jan-13-2024, 06:46 PM
RE: Append inside for? - by deanhystad - Jan-13-2024, 07:06 PM
RE: Append inside for? - by johnywhy - Jan-13-2024, 07:14 PM
RE: Append inside for? - by noisefloor - Jan-13-2024, 07:28 PM
RE: Append inside for? - by johnywhy - Jan-13-2024, 09:32 PM
RE: Append inside for? - by deanhystad - Jan-14-2024, 01:19 AM
RE: Append inside for? - by johnywhy - Jan-14-2024, 04:50 AM
RE: Append inside for? - by deanhystad - Jan-14-2024, 01:11 PM
RE: Append inside for? - by johnywhy - Jan-15-2024, 12:13 AM
RE: Append inside for? - by Gribouillis - Jan-15-2024, 08:33 AM
RE: Append inside for? - by johnywhy - Jan-15-2024, 11:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cant Append a word in a line to a list err "str obj has no attribute append Sutsro 2 2,703 Apr-22-2020, 01:01 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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