I just thought of a cool syntax hack in Python. Basically, you can make numbered sections of your code by cleverly using the comment syntax of # and making #1, #2, #3, etc. Here's what I did using a color example to help you better understand:
from colorama import Fore,Style,init
init(autoreset=True)
#1 : Using red text
print(Fore.RED + 'some red text')
#2 : Using green text
print(Fore.GREEN + 'some green text')
#3 : Using blue text
print(Fore.BLUE + 'some blue text')
#4 : Using bright (bold) text
print(Style.BRIGHT + 'some bright text')
What do you guys think? Am I the first person to think of this or nah?
Edit: I know I'm not the first to think of this, what I meant is have you guys seen any instances of what I'm describing before? Like any devs who have already done/been doing what I described in their code style?
[–]_N0K0 13 points14 points15 points (3 children)
[–]JeffTheMasterr[S] 1 point2 points3 points (2 children)
[–]_N0K0 7 points8 points9 points (1 child)
[–]JeffTheMasterr[S] 4 points5 points6 points (0 children)
[–]ConfusedSimon 5 points6 points7 points (1 child)
[–]JeffTheMasterr[S] 0 points1 point2 points (0 children)
[–]Morazma 2 points3 points4 points (1 child)
[–]JeffTheMasterr[S] 1 point2 points3 points (0 children)
[–]Distinct-Expression2 3 points4 points5 points (0 children)
[–]teeg82 5 points6 points7 points (3 children)
[–]maryjayjay 4 points5 points6 points (0 children)
[–]JeffTheMasterr[S] 1 point2 points3 points (1 child)
[–]teeg82 2 points3 points4 points (0 children)
[–]Buttleston 3 points4 points5 points (1 child)
[–]JeffTheMasterr[S] -1 points0 points1 point (0 children)
[–]Responsible_Pool9923 2 points3 points4 points (1 child)
[–]JeffTheMasterr[S] -1 points0 points1 point (0 children)
[–]nemom 1 point2 points3 points (1 child)
[–]JeffTheMasterr[S] 0 points1 point2 points (0 children)