<--> snip >> if point(one+two) == "win": >> > > Here you go into the function "point" the first time. Inside the function > you are in an infinite while-loop where you only exit if the sum is either 7 > ("lose") or equal the given parameter ("win"). Then you compare the return > value. In the case of "lose" you continue to the next elif-statement: > > > stake += bet*2 >> print winmsg >> elif point(one+two) == "lose": >> > > Now you go into the function "point" a *second* time, in other words you > have to throw another 7 to leave the function with the return value "lose". > But just now you will print out the message for loosing the game: > > > print losemsg >> player = changePlayer(player) >> > > What you probably want is to go into "point" only once, save the result > value and check if it's "win" or "lose". > > HTH, > > Andreas > > Amazing as always. I will act upon all suggestions. Thanks again
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor