Normally with else-if code, you see people using numbers. Ex: If x = 10: print('Good job') Else: print('Bad job'). But I want to know if I can use words/variables in an else-if code. Ex: If service1 = Oil change: print('Service 1: {}, $35'.format(service1)
Aucun commentaire:
Enregistrer un commentaire