Fortran If And Statement Python