I have to finish my project and now i don't have enough time, Please read the file CAS.docx there 3 questions for my last assignment. i Put some examples too, for 1 and 2 questions you should create cvs files i added examples for both cvs files, Thanks
1. CAS a Class object that generates random thoughts - the thoughts should make reasonable sense and follow some sort of English structure. The class when instantiated, should bring in word(s) list(s) from outside, I've provided an adjective and a noun list that you should bring in but are not limited to. 2. CAS a Class object that scrapes a simple website - looks for an email address and emails every address a random thought from your random thought generator. 10 points on your midterm if the random thoughts come from the text in the scraped website. https://medium.com/swlh/how-to-scrape-email-addresses-from-a-website-and-export-to-a-csv-file-c5d1becbd1a0 import re s = 'asdasd adasda a
[email protected]' re.findall(r"[a-z0-9\.\-+_]+@[a-z0-9\.\-+_]+\.com",s, re.I) adjectives.csv nounlist.csv classes.py I need help with the Python 1. CAS (Create and Submit) a Class object that generates random thoughts - the thoughts should make reasonable sense and follow some sort of English structure. The class when instantiated, should bring in word(s) list(s) from outside, I've provided an adjective and a noun list that you should bring in but are not limited to. 2. CAS (Create and Submit) a Class object that scrapes a simple website - looks for an email address and emails every address a random thought from your random thought generator. also, the random thoughts come from the text in the scraped website. nounlist ATM CD SUV TV aardvark abacus abbey abbreviation abdomen ability abnormality abolishment abortion abrogation absence abundance abuse adjectives abandoned able absolute adorable adventurous academic acceptable acclaimed accomplished accurate aching acidic acrobatic 3. Create a game of Tic-Tac-Toe in Python Your output should include a visual looking something like this every turn. [ , , ] [ , X, ] [O, X, O] Have the computer play against itself 10, 100, 1000, and 10,000 times (You must implement some sort of random logic in the move sequence, so that its not the same game played 10,000 times) After each set amount of times - ask the computer to print out some stats on that set of games. 1. How many games were played? i.e. 100 times 2. How many games did X win? i.e. 50 games 3. How many moves did X make? 4. How many moves did O make? 5. How many turns on average does it take to win? 6. How many turns on average does it take to draw?