У меня ошибка:
Traceback (most recent call last):
File "c:/Users/Owen/Desktop/Python/BlackJack.py", line 281, in <module>
main()
File "c:/Users/Owen/Desktop/Python/BlackJack.py", line 230, in main
while money > 0:
TypeError: '>' not supported between instances of 'NoneType' and 'int'
Но я уже определил переменную как int
def main():
money = int(1000)
while money > 0:
if len(cards) <= 13:
print("No Card")
print("Money:", money, " Bet: 100\n")
exit()
else:
print(len(cards))
Почему система до сих пор определяет «деньги» как NoneType? Спасибо.