Search code examples
pythonloopsidl-programming-language

Equivalent of IDL's then begin statement in python


Just wondering, I have a for loop in IDL I am looking to convert. I have in IDL:

if ... then begin

I'm thinking this is just equivalent to

if ...:

In python, with the colon being then "then begin" command...

Just looking for confirmation on this, if I am correct.


Solution

  • You are absolutely right. Is that enough confirmation?