Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello, I need help with a python3 lab that must run on html : Requirements Write a python program that 'analyzes' a list of words
Hello, I need help with a python3 lab that must run on html:
Requirements Write a python program that 'analyzes' a list of words supplied in a textarea as described on a later slide. Your python code will generate both the form and the output You can use a separate HTML file and python code like I did in class. Attach your python source in using the dropbox link in cobra learning. Put a link to your running file in the message area Analyzing requirements You must split the entire text area into a list of strings by spaces. (This is what split() does by default) (i.e. words in a paragraph) It will sort() the words in ASCENDING lexicographical order and print the first 400 words in 10 columns. You have to count the number words in the text area and print that out. You have to determine the average word length of the words in the paragraph and print that out too. Sample output Unsorted: ['This', 'is', 'a', 'sentence', 'T', 'just', 'typed', 'in'] Sorted:[l', 'This', 'a', 'in', 'is', 'just', 'sentence', 'typed'] There are 8 words The average word length is #.#### Notice that capital letters come before lowercase, leave it that way. th Some test data. 300 words 5.60 avg sound say rule government president than standard week southern wear manager area private up ten sometimes face break teel none somebody force quickly region however light long it animal vote against my push send throughout aftect performance identity problem buy and such tell red should road crime security mouth contain tinancial torn current quality reveal option change data affect create still role institution cup compare ability tough social image north painting last impact light student test though ait tim industry deep figure just best word claim raise start answer reduce recently nothing its building service tar but process bed modern hear home down there which loss suddenly decide specific significant west stage lawyer ten treatment table focus big nenory style stop kill third hotel eight leas couple understand these yes voice walk him concern member almost get ground drive civil stand this professional event security officer spend serve hand administration outside cup lead company everyone renain plan choice food day chance energy certainly month carpaign prepare night class above maintain above middle head property local building very tail nothing tear you cold contain laugh agent change suggest price federal teacher nearly know but real private very allow trade single also action according practice recently both low focus those method enter enough green particularly compare yeah responsibility anything recent sing address who beard love into cup suggest not lawyer during grow well want half pain political close area prepare answer election painting financial particularly to community fall perhaps treatment write best patient week date between attention house play tly Mr now purpose major memory risk sing style threat moment continue person likely situation perhaps bank ready low as able house anyone six recognize real worry society serious audience but she pain rather kitchen sing thought commercial education inside section sign over
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started