I am working on a python hangman game and have my graphics based on a variable, lives, so when you have 1 lives, the corresponding picture appears. i put my graphics into definitions and want to call them from that. Here's my code so far:
if life== 1:
        graphics1()
 if life==2:
        graphics2()
 if life==3:
        graphics3()
 if life==4:
        graphics4()
 if life==5:
        graphics5()
 if life==6:
        graphics6()
 if life==7:
        graphics7()
 if life==8:
        graphics8()
 if life==9:
        graphics9()
 if life==10:
        graphics10()
and so on, so is there a command which would allow me to shorten this to one or two lines?
 
     
     
    