I'm relatively new to coding but am trying to make a little game.
I want to make the names of the variables "ship_turned" and "ship_turned_rect" dependent on a given parameter "ship". For example, I want to be able to write "ship1" as the argument in order to make "ship_turned" into "ship1_turned" and "ship_turned_rect" into "ship1_turned_rect".
Here is my incomplete start at the relevant part of the code...
def turningdirection(ship):
ship_turned, ship_turned_rect = turning(0, ship)
return ship_turned, ship_turned_rect
I've tried making ship_turned and ship_turned_rect as 2 more parameters, but that doesn't seem to work.