Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Note: please familiarize yourself with basic if else in python, and the range function to create loops. Question 1 : A list lst contains [
Note: please familiarize yourself with basic if else in python, and the range
function to create loops.
Question :
A list lst contains
one "two", "three "four", "five", "six", "seven", "eight", "nine", "ten"
Modify the list so that it contains the following as you can see, instead of two it
says one plus one, instead of three it says one plus one plus one
one "one plus one", "one plus one plus one", "one plus one plus one plus one"
and so on
Question :
A string contains "Hello this is a beautiful morning". Create a and print to the
screen a new string that stores the same content, but with the word beautiful
removed.
Question :
A list contains the following:
Each entry in the list contains a name, student ID and a list of three grades.
For each student, print the Average of all grades, and the maximum and
minimum. Print the student name with the highest average. Question :
Input a Canadian Postal code of the form LDL DLD as a string where L is a letter
in AZ and D is a digit in There is a space in between. You are to verify
that the postal code is in this form. If not, you need to output an error message.
For example, KKH is a valid postal code. All letters need to be upper case.
Question :
Given any string composed of any character. Your program will output to the
screen the number of as in the string, the number of bs the number of cs as
well as the number of all other characters non a b or c
Each question is worth points.
You will be graded as follows for each problem:
of points for the correctness of the logic.
points for using proper messages in your program.
point for documentation inserting proper comments
points for a professional judgment of your overall solution.
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