]Īnd to generate (because it was my objective) a list of 1) upper case only words, 2) only "name like" words, and 3) a sort-of-realistic-but-fun sounding random name: import random 'aback', 'abacus', 'abalone', 'abandon', 'abase', 'abash', 'abate', Answer based on accepted answer above by Kyle Kelley. Word = word + wordįor Python3 the following code grabs the word list from the web and returns a list. WORDS = ("python", "jumble", "easy", "difficult", "answer", "xylophone") there's only one problem: I don't want to keep having to write tons of words in the list, so i'm wondering if there's a way to import a ton of random words so even I don't know what it is, and then I could enjoy the game too? This is the coding of the whole program, it only has 6 words that i put in: import random So i'm basically working on a project where the computer takes a word from a list of words and jumbles it up for the user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |