How output is 6 for below : def func(x): res = 0 for i in range(x): res += i return res print (func(4))
What does this have to do with Modules? Please try to find a fitting title for your questions. func is called with 4. range(4) becomes 0, 1, 2, 3. If you add all these numbers to res, it's six.
I have tried every way I could find but still I can't display my local images ..what am I doing wrong?
Bug: Sololearn notification is still showing number in the notification icon even i did mark as read
Izzy the iguana code coach
Hi, hope you're doing good.Could someone please tell me why does the while loop not stop when I type in rock, paper or scissors?
Finished python for beginners
C++ Question re stringstream