I am writting a code and i already know i'll have to change some instructions when i'll have more information. I already know the specific lines i'll have to change, but since the code is a bit long, i'd like to prepare the moment i'll have to change those lines, by printing the n° of those lines. Actually i'd like something like a this_line() function that would work like this :
1
2
3 print('this line is the n°'.format(this_line())
4
>>> this line is the n°3
Can i do this without converting my code in .txt and counting the lines ?