Plz explain this
Well you are initilializing the array of ints and the the variable sum. Then you iterate via loop through the array of these ints and you add them to the sum variable. Then you print it. Also the += operator is shortcut. Consider this : x = x + variable, now this x += variable
variable sum iterates through all the values in the array like.. sum+=arr sum+=arr sum+=arr till....4 where x is 0,1,2,3,4 so sum is the summation of each element in the array
Please help, any idea?
Loop question, I've tried everything that I knew I just don't know. Please help me solve it out
Python — File Handling
What is wrong? Error on test.
Help me solve this (using loop)
Help me wiht python