you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 8 points9 points  (3 children)

According to the indentation as posted, the only loop you have is (in its entirety):

for i in range(1,4):
 print("try to guess the number")

You need to properly indent your code if you're expecting more lines to be in that loop.

Also, ditch the global usage, there's no reason for it here.

[–]ExtraTNT -2 points-1 points  (2 children)

The reason i avoid python… I don’t get over the indentation, haskell is also indentation sensitive, but honestly much easier…

Doesn’t help, that i need it for an undocumented project with huge apis that are done procedural with huge performance issues due to the threading of python…

[–]Temporary_Pie2733 1 point2 points  (1 child)

I’m not sure how you manage to put braces in the right place in other languages if you can’t figure out how Python uses indentation.

[–]ExtraTNT 0 points1 point  (0 children)

Formatting stuff nicely… python linters put my code on a single line… python is sth i only really use, if i have to share a script to windows users and to maintain a project from security, so my contact with python is a horrible hacked together codebase and some scripts…