You are viewing a single comment's thread. Return to all comments →
for i in range(1,n+1)
sets i to 1 then 2 then 3 then 4 then 5 then 6 then 7
string multiplication simply repeats the string i times;
3 * "A" = "AAA"
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
sets i to 1 then 2 then 3 then 4 then 5 then 6 then 7
string multiplication simply repeats the string i times;