assign set of variables to class object,usually is this:
player.x = 1
player.y = 10
player.name = 'John'
since list and tuple allow you doing this
a,b,c = (1,10,'John')
so this works
player.x,player.y,player.name = (1,10,'John')
or this
player.x,player.y,player.name = 1,10,'John'
I would like to change player properties, I need to type too much player. Is the a more lazy way to do this?
with player: x = 1 y = 10 name = 'John'right? I believe there's no such opportunity.