I am new to python. I am looking python version of the following shell code.
for (( i=1; i <= 5; i++ ))
do
if avg_$i > 0 ; then
print "Yes!!"
fi
done
I tried this :
for i in range(1,5):
if(avg_%d != 0) %(i) :
print("Yes !! ")
It is obvious in other languages. I am sure python will also have an easy way to do it.