Didn't understand help

0 Ratul Mohindra · May 31, 2015
what does total += a do, what if i use total -= a or total *= a in video 17

Post a Reply

Replies

Oldest  Newest  Rating
0 Halcyon Abraham Ramirez · June 1, 2015
total += a :adds whatever is in a to total
total -=a: subtracts whatever is in a to total
total *=a: multiplies whatever is in a to total
0 Pavel Dimi · June 4, 2015
This is just short writing
total += a 
is the same as (for the most part) 
total = total + a
same goes for the other operations
0 Ratul Mohindra · June 8, 2015
Thankyou it's all clear now
  • 1

Python

107,130 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator