Ask coding questions

← Back to all posts
Why the "stop" isnt working
TejasvMaheshwar (7)

So am trying to make a blackjack game in python as a side project but , the "stop" string isnt stopping the hitorstop() function and some of the code isnt being executed if , todo == "stop" it just keeps looping when i input "stop" instead of "hit"

Comments
hotnewtop
[deleted]

its because the program doesnt think stop is in

("hit" or "stop")

line 84

[deleted]

working on it...

[deleted]

@TejasvMaheshwar not very sure, maybe abandon the

("hit" or "stop")
TejasvMaheshwar (7)

what do i replace it with? @Aphmeta