0

Convert into Python

<?php $a=10; for($i=1;$i<=$a;$i++) { echo $i; } ?> I want to use this same program in python but i don't understand python loop, so please convert this php program into python

25th May 2020, 7:44 AM
Shailendra
Shailendra - avatar
1 Answer
0
a = 10 for i in range(1,a+1): print(i) range(a,b) is inclusive for a and exclusive for b
25th May 2020, 7:48 AM
JME