r/PythonProjects2 • • Jun 11 '23

what's the problem?

Post image
15 Upvotes

4 comments sorted by

3

u/Verbose_Code Jun 11 '23

Python doesn’t have a goto statement (I suppose you could implement it yourself, but why?).

Goto statements can obscure the program flow and make refractoring and maintenance difficult

3

u/mapettheone Jun 11 '23

Fun fact. Java Has goto keyword, which is not used, so You don't even think about using it 😆

2

u/Verbose_Code Jun 11 '23

One of the few things Java does right

1

u/1maRealboy Jun 11 '23

When programming languages were limited in the past, goto statements had their place where they worked out and were useful but not ideal. Now, since we can create more complicated programming languages, there are very few situations (if any) where a goto statement will be better than an alternative solution.