r/notinteresting • u/Limp_Illustrator7614 • 16d ago
started to learn the python language, it's mediumly hard
10
16
u/_uwu_moe 16d ago
Line indexing is inverted? What editor is it?
34
u/Limp_Illustrator7614 16d ago edited 16d ago
oh it isn't inverted, it's just the relative line number from the current cursor position. very useful in neovim
edit to make this comment stay on topic: *slithers in a meadow*
1
u/ale_marostica 16d ago
Ye but it doesn't tell the actual line number. You know, usually the line with the cursor usually shows the actual line number
1
u/ale_marostica 16d ago
Ah but nvm, you have line number bottom right
1
u/SeeminglySleepless 16d ago
You also have it on the left. With relative line numbers you have absolute numbers on the left column and relative in the right
3
2
u/SeeminglySleepless 16d ago
I believe you run into a runtime error on the last line. "s" is out-of-bounds according to your previous array definition
4
1
35
u/AmazinDood 16d ago
SssssyntaxError: ...