Generation

generate functionThu, 23 Mar 2023

crea una funcion en la que cuando apretemos el boton "g" el player pierda 20 de vida

def lose_life(player, loss_amount): player["life"] = player["life"] - loss_amount lose_life(player, 20)

Questions about programming?Chat with your personal AI assistant