Re: [Tutor] Need help with functions!

2010-01-26 Thread Alan Gauld
"Raymond Kwok" wrote I have a function called get_word() that does the random word thing and returns two things - 1) original word and 2) scrambled word, jumble = get_word()[0] originalword = get_word()[1] You need to store the return value once and access the two values. words = get_wor

[Tutor] Need help with functions!

2010-01-25 Thread Raymond Kwok
Hello all, I have started to learn Python a few months ago and I'm loving it! I am creating a mini-game - the one that scrambles an English word and asks you what the originalword should be, e.g. yhptno ---> python So, I have a function called get_word() that does the random word thing and retu