You are viewing a single comment's thread. Return to all comments →
can you explai it ?
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"
i tried the same thing but it doesnt work :(
it says it is nonetype :/
Wow this is a lifesaver. At first I thought I was "cheating" by looking at the discussion board (after many futile attempts at the exercise), but I learned something new! Thanks!!
yes i ca explai