Question: Submission Requirements Python . py file with no markdown language. Only Python code and comments. Group Assignment: Only 1 assignment needs to be submitted for
Submission Requirements
Python py file with no markdown language. Only Python code and comments.
Group Assignment: Only assignment needs to be submitted for each group.
Task
Create a program by the following definition:
Define the following setting variables
variables containing the following values for a string: I would suggest a list of some kind
Consonants are worth
Vowels are worth points
all other characters are worth
WordToTest
Your code must perform the following operations:
roll a random number
low value of random range is
high value for range is defined as:
lengthWordToTest NumberOfVowelsWordToTest
Score the WordToTest based on the letter values found in bullet
Create a conditional logic output to test:
which has the higher value computed wordtotest or random gen
Notes and Hints
When looping through the string to score, the function isalpha might be helpful. Also might be useful as well.
Example
Hello would be scored as points! The random number would be from a range of to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
