I need to create a set, such as a list, in the Dealer
variable, where it needs to contain letter objects, any idea how to do this?
class cartas(object):
def __init__(self,carta):
self.carta = carta
def pontos_carta(self):
if carta == '1':
return 1
elif carta == '2':
return 2
elif carta == '3':
return 3
elif carta == '4':
return 4
elif carta == '5':
return 5
elif carta == '6':
return 6
elif carta == '7':
return 7
elif carta == '8':
return 8
elif carta == '9':
return 9
elif carta == '10':
return 10
elif carta == 'J':
return 10
elif carta == 'Q':
return 10
elif carta == 'K':
return 10
elif carta == 'A':
return 1
Dealer = []