BTW, I'm teaching in a course. I'm using as a tool because the students had some python classes during the course, given by another teacher.

I proposed some exercises and I saw they iterate in lists like this:

``` python
for i in range( len( list ) ):


What kind of python teacher did they have?

@ekaitz_zarraga I have been using python enough that when I looked at that bit of code I couldn't figure out what it was supposed to do.

@inmysocks let me tell you what it does:

It is an idiom to make other programmers know that the teacher that taught you this is a complete incompetent.

> What kind of python teacher did they have?

A C programmer, or a Java programmer who hasn't been paying attention since 2008.

@gcupc I think he is a guy that studied Economy and thinks he knows how to code because he wrote a couple of 20-line R scripts.

If the guy is the guy I think... I heard this dude say:

- I don't use functions, just some loops sometimes.

@ekaitz_zarraga I've met a guy from the scientific side of Python who would flat out refuse to use any convenient Python idioms and resort to C-like code on the premise that it should be readable for people not familiar with Python. Put like that it kind of sounds like it makes sense, but then why have different languages at all, if you constrain yourself to assignments, if/while/for and calling functions…

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!