« first day (3524 days earlier)      last day (1649 days later) » 

22:00
and if all else fails google it
@ChrisP please read the manual linked above.
Look for the "any" key.
When you find it, let us know.
Aha! There's the LMGTFY key
You mean LMBTFY in Windows?
LMPTFY in Python Chat
22:08
I found the error:

After the pastebin block i have some other code which woulb be one tab left.
:)
So...it wasn't something we could have known. Interesting.
So it was never an MCVE
What does that mean? "Some other code which woul[d] be one tab left"?
@CodyGray borked indentation
since indentation denotes blocks, putting something one indent to the right will push it into a loop when you didn't mean to do that
If you're asking us, and not Chris P, it likely means there were was an enclosing iteration
22:10
and no, braces are not a suitable solution to this problem
So some outer loop. Fun times.
Yes how can i use brackets like in c programming language?
Indenting code automatically creates a loop?
@ChrisP Use C.
@CodyGray of course not
You could just link to the C libraries used to implement the Python interpreter. It seems like an ideal solution to me.
22:11
but they already had a loop. Then they had code that was supposed to be after the loop, not in it.
@ChrisP from __future__ import braces
sorry, I had an event of brain flatulence
@CodyGray no, but the extra indentation would put it within some construct (? is that the right term?) like a func definition or a loop. If it runs, and they don't show the func definition, it's usually within a while/for loop that isn't shown
Anecdotal: People tend to be better at remembering to include the function definition than some outer loop when they copy/paste code as an "MCVE". But there's no way to know
If only there were curly braces, then it would be obvious where a mismatch occurs.
@roganjosh But, reading this, I'm becoming concerned that it suggests one can define a function within a loop.
Nested functions are evil.
@CodyGray I've never once been bitten by misplaced indentation so this is not a common problem
You can
@CodyGray sure you can
22:16
@AndrasDeak I've been bitten by it both of the two times I used Python.
then you need a better editor :P
or use python more than twice and get better at it
I keep "show whitespace" turned off because it's too noisy.
Using it more than twice sounds like a lot of work...
people also get bitten by for (i=0, i<2, i++) in C until they know better
You mean, using commas rather than semicolons?
22:18
Never seen that.
I'm pretty sure I've done that at least once in my life
I will grant, though, that the comma operator is probably a misfeature in C.
23:03
I still do that
wim
wim
23:51
i.redd.it/oebm3x7j9ov41.png <-- meme for the Cpp fans in the room

« first day (3524 days earlier)      last day (1649 days later) »