![]() |
|
[Python] Guess your number - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Python (https://sinister.ly/Forum-Python) +--- Thread: [Python] Guess your number (/Thread-Python-Guess-your-number) |
RE: [Python] Guess your number - chmod - 02-14-2013 Not bad as the old saying goes there's more than one way to skin a cat the only thing is you got Code: if x == 'h':
high = ans
elif x == 'l':
low = ansthe wrong way around it should be: Code: if x == 'h':
low = ans
elif x == 'l':
high = ansIt's always nice to see other people's aproach to somthing though EDIT disregard that I see what you did now you mean state if he guess was low or high no he direction the program needs to go RE: [Python] Guess your number - xevenofhearts - 02-14-2013 That's awesome! I really need to learn Python. By the way, I think you meant "higher" not "higer" Seriously though cool little program xD
RE: [Python] Guess your number - xevenofhearts - 02-14-2013 That's awesome! I really need to learn Python. By the way, I think you meant "higher" not "higer" Seriously though cool little program xD
RE: [Python] Guess your number - xevenofhearts - 02-14-2013 That's awesome! I really need to learn Python. By the way, I think you meant "higher" not "higer" Seriously though cool little program xD
RE: [Python] Guess your number - chmod - 02-14-2013 (02-14-2013, 01:25 AM)Perplexxd Wrote: That's awesome! I really need to learn Python. By the way, I think you meant "higher" not "higer" I did indeed how come it's always someone else who spots he typo's? Thanks for the feedback though I appreciate it RE: [Python] Guess your number - chmod - 02-14-2013 (02-14-2013, 01:25 AM)Perplexxd Wrote: That's awesome! I really need to learn Python. By the way, I think you meant "higher" not "higer" I did indeed how come it's always someone else who spots he typo's? Thanks for the feedback though I appreciate it RE: [Python] Guess your number - chmod - 02-14-2013 (02-14-2013, 01:25 AM)Perplexxd Wrote: That's awesome! I really need to learn Python. By the way, I think you meant "higher" not "higer" I did indeed how come it's always someone else who spots he typo's? Thanks for the feedback though I appreciate it RE: [Python] Guess your number - Deque - 02-14-2013 (02-14-2013, 12:24 AM)MrBlaise Wrote: You are right, that this is a faster approach, but it is also less interesting for the user, because the way of the computer's guessing will be determined. RE: [Python] Guess your number - Deque - 02-14-2013 (02-14-2013, 12:24 AM)MrBlaise Wrote: You are right, that this is a faster approach, but it is also less interesting for the user, because the way of the computer's guessing will be determined. RE: [Python] Guess your number - Deque - 02-14-2013 (02-14-2013, 12:24 AM)MrBlaise Wrote: You are right, that this is a faster approach, but it is also less interesting for the user, because the way of the computer's guessing will be determined. |