![]() ![]() For example, if I input 'bouni' as my string of letters, this is what I get: In the end, you will input a string of letters and your program will print out (to the screen and to a file) a list of all possible words you can make along with their point values in descending order (neglecting things like triple letter, double word squares, etc. In this lab assignment, you are going to make your own Scrabble word finder function, scrabbleWords(). The words that players create earn points by counting the points for the letters according to the game rules. Scrabble is a word game in which players take turns placing tiles with individual letters onto a game board. When you have the IDLE window up, you are ready for some programming! The terminal command for this is “ idle3 &”. Step 2: Create a directory in your cs8 directory named lab05.This is done following the steps you have performed in lab00. Step 1: Log on and open up a terminal window.Make sure that you adhere to the Academic Integrity standards and do/submit your own work. formatting output and writing it to the screen and a file.using list method sort() to sort words in order of descending point value.reading data (words) from a text file and putting them into a list.In this lab, you’ll get more practice with: ![]() Scrabble Word Finder: Python lists, dictionaries and file I/O
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |