This issue is really strange, I can't figure out what's causing it. I'm using Python in VSCode and there's something weird with for loop indentation. For example, this works fine:
![[Image: J7DW4rh.png]](https://i.imgur.com/J7DW4rh.png)
But if I add another line, it fails:
![[Image: Bfoybxm.png]](https://i.imgur.com/Bfoybxm.png)
Note how the indentation in the terminal doesn't match. In fact every time I run a for loop the indentation in the terminal seems to increment until it's far to the right! However this does work:
![[Image: 3qo96Bj.png]](https://i.imgur.com/3qo96Bj.png)
Which makes no sense. Is this some kind of issue with VSCode or Python?
for i in [0,1]:
print(f"First line {i}")![[Image: J7DW4rh.png]](https://i.imgur.com/J7DW4rh.png)
But if I add another line, it fails:
for i in [0,1]:
print(f"First line {i}") print(f"Second line {i}")![[Image: Bfoybxm.png]](https://i.imgur.com/Bfoybxm.png)
Note how the indentation in the terminal doesn't match. In fact every time I run a for loop the indentation in the terminal seems to increment until it's far to the right! However this does work:
for i in [0,1]:
print(f"First line {i}")
print(f"Second line {i}")![[Image: 3qo96Bj.png]](https://i.imgur.com/3qo96Bj.png)
Which makes no sense. Is this some kind of issue with VSCode or Python?
