News

for i in range(1,6):#it repeats 4 times(outerloop)i=5<5,false for j in range(1,i+1):#it prints row values(inner loop) j=1,3<3 ...
The Python star pattern challenge is a popular task ... For example, with a right-angle triangle, the number of stars on any given row is equal to the row you're on. Here's the code for that: for i in ...