Python Use For Loop Range In Python Code Running In The Command