View Single Post
  #1  
Old 03-06-2010, 04:03 AM
Python Python is offline
Senior Member
 
Join Date: Jun 2009
Posts: 4,684
Default Help converting an if loop into a while loop?

the program I had looks like this: def wordToNumber(word): if word == "one": return 1 elif word == "two": return 2 elif word == "three": return 3 elif word == "four":
__________________
Python
Domain Name Forum
Reply With Quote