Posts by Rhytmetic • 33 points
1 post
-
3
votes1
answer85
viewsQ: Why does x += y add the values in an iteration?
I don’t understand why this code r += v sum the values. I would like someone to explain to me why the output of this code: for c in range (0, 10): v = int(input("numero: ")) r += v…