It is very hard to master any of programming language and many students have troubles with it. That is why we have decided to render assistance for those who have difficulties with Python. **Python problems** are very common among students. They are tired of constant Python questions and try to find the **Python answers**. Ask your questions here and be sure to get the 100% truthful answers. The only thing you will have to do – is to send the request with **Python questions** and to have no hesitation that all your Python questions will be satisfied.

### Ask Your question

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

### Search & Filtering

Sample run:

Enter the starting number: 2 Enter the ending number: 4

2

3

4

The total is 9

print ("Enter 2 to calculate the surface area of a sphere")

print ("Enter 3 to calculate the volume of a sphere")

print ("Enter 4 to quit")

Assuming the choice is 1-3, ask the user for the radius. If the user enters a string that cannot be interpreted

as a number, display the error message: Radius needs to be a number. If the user enters a nonpositive

number, display the error message: The radius has to be positive. Once you have a

positive radius, for choice 1, calculate the area of a circle by calling a function that calculates and returns the

area. For choice 2, calculate the surface area of a sphere by calling a function that calculates and returns

the surface area. For choice 3, calculate the volume of sphere by calling a function that calculates and

returns the volume. Your program should continue to display the menu, error check, and make calculations,

until the user enters choice 4.

and strings. First, ask how many sentences the user wants to store. You can assume that you will get an

integer, but if it is non-positive, default to the value of 5. Next, get the user input (i.e. the sentences) and

store them in your list in all lower-case letters. You can assume that the user will enter sentences without

the . at the end.

Next, you will loop the same number of times as the number of sentences in your list and in each iteration

you will display the following menu:

print ("Enter 1 to see a sentence")

print ("Enter 2 to see the whole list")

print ("Enter 3 to change a sentence")

print ("Enter 4 to switch words")

print ("Enter 5 to count letters")

You can assume that the user will enter an integer. Below is what you should do depending on the choice.

mathematical operations. The only valid choices are: add, subtract, multiply, or divide (use true division and

not integer division). The user can type the operation using any combination of upper case and lower case

letters. If the user types in an operation that is not defined, the program should simply tell the user the

operation is not a valid operation (See sample run 1). Assuming the user’s operation is defined, you will

perform the operation, print the operands, print the operation (the way the user typed it), and the result. If the

second integer input is zero and the desired operation is division, don’t print the result, instead print that

“Division by zero is not allowed” (See sample run 2). After printing the result, display a line and print out any

of the three messages below that is true:

Both operands were negative

Both operands were positive

The result has three or more digits in it

print('Please enter customers name')

myName = input()

print ('Please enter data usage')

myData = int(input())

if myData > int(str(int(5) +10)):

print ('Please enter minutes used')

myMinutes = int(input())

if myMinutes > int():

print ('Please enter number of texts')

myTexts = int(input())

print('Please enter state tax')

myTax = int(input())

print('Your bill is' = str(int(myData) + (int(myMinutes) + int(myTexts) + int(myTax) + 'for September.'):

def digitCount(n):

return 42

# Given an integer n, return the sum of its digits.

def digitSum(n):

return 42

# Definition: For a positive integer n, n factorial, denoted n!,

# is the product n*(n-1)*(n-2)*...*1. If n = 0, then define 0! as 1.

# Given an integer n (which you can assume is non-negative),

# return n! (n factorial).

def factorial(n):

return 42

# Definition: We say that m is a factor of n if m divides n without a remainder.

# Given an integer n (which you can assume is positive),

# return the smallest factor of n larger than 1.

# If n is 1, then you should return 1.

def smallestFactor(n):

return 42

Print the name and grade percentage of the student with the highest total of points

Find the average score of each assignment.

Find and apply a curve to each student's total score, such that the best student has 100% of the total points.

student_grades = {

'Andrew': [56, 79, 90, 22, 50],

'Colin': [88, 62, 68, 75, 78],

'Alan': [95, 88, 92, 85, 85],

'Mary': [76, 88, 85, 82, 90],

'Tricia': [99, 92, 95, 89, 99]

}

You are designing an algorithm that ranks website pages by relevance according to the number of times they are viewed by users. Which data structure would be the most useful and efficient for you to use?

A hash table because data would be efficiently searched and retrieved

A stack because the website pages would need to be popped and pushed systematically from the ranking list

A graph because Elizabeth needs data relating to how webpages are connected to each other and how many times they were viewed

A sorted array because all the data relating to web pages needs to be sorted in a ranking order

None of the above

The time complexity of all single statements is constant

According to the Big O Notation, the time complexity of some statements can be said to be logarithmic

Time complexity can only be expressed by using the Big O notation

Time complexity can be expressed as a differential equation

The time complexity of an algorithm can vary over time

Quadratic time complexity can be expressed as a quadratic equation

1, 3 & 5

2 & 4

5, 2 & 6

2 & 6

2, 4 & 6