new to While statements

snakeinmyboot mikelhamer at gmail.com
Wed Aug 7 00:17:32 EDT 2013


yea no problem. heres a little tip though so you atleast get something out of the post.

monster_hp = monster_hp - damage_done

can be simplified by writing

monster_hp -= damage_done

the -= means equal to whatever is on the left, minus whatevers on the right. this can be done with addition, multiplication, division, etc etc etc.



More information about the Python-list mailing list