Can We Use Python Instead Of Javascript For Loop