1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
DedPeter [7]
3 years ago
5

Complete the expression so that user_points is assigned with 0 if user_items is greater than 25 (second branch). Otherwise, user

_points is assigned with 10 (first branch).
user_level = int(input()) # Program will be tested with values: 15, 20, 25, 30, 35.

if ''' Your code goes here ''':
user_points = 10
else:
user_points = 0

print(user_points)

What is the answer for Python please.
Computers and Technology
1 answer:
Tju [1.3M]3 years ago
7 0
This a similar question but just that its greater then 30 seconds.
You might be interested in
A. Write a program that asks the user to enter an integer, then prints a list of all positive integers that divide that number e
kobusy [5.1K]

Answer:

Following are the program in python language the name of the program is factors.py

num= int(input("Please enter a positive integer: "))#Read the number by user

print("The factors of ",num,"are:")

for k in range(2,num): #iterating over the loop

   if(num%k==0): #checking the condition

       print(k)#display the factor

Output:

Please enter a positive integer: 12

The factors of 12 are:

2

3

4

6      

Explanation:

Following are the description of the program

  • Read the number by user in the "num" variable
  • Iterating the for loop from k=2 to less then "num".
  • In the for loop checking the factor of "num"  variable by using % operator.
  • Finally display the factor by using print function
4 0
3 years ago
Non-preemptive Shortest Job First (SJF) scheduling policy is not optimal if:
ivann1987 [24]

Answer:

The answer is A

Explanation:

Basically, Shortest job first (SJF) is a scheduling policy that selects jobs on queue for execution  within a short execution time.

From the definition of SJF above, it means that there are a lot of process on queue and the (SJF) job is to receive processes on queue to execute within a short execution time.

Therefore, if all the jobs or process arrives at the SJF at the same time, the SJF will forfeit one of its major purpose which is scheduling of jobs.

That will therefore not make Non-preemptive Shortest Job First (SJF) not function at its optimal point.

4 0
3 years ago
Which option is used in emails to inform the recipient that they should exercise discretion in accordance with sharing the conte
Kay [80]
Priority levels hehe good luck!
5 0
3 years ago
IN PYTHON LANGUAGE
shtirl [24]

favorite_color = input("Enter favorite color:\n")

pet = input("Enter pet's name:\n")

num = input("Enter a number:\n")

print("You entered: "+favorite_color+" "+pet+" "+num)

password1 = favorite_color+"_"+pet

password2 = num+favorite_color+num

print("First password: "+password1)

print("Second password: "+password2)

print("Number of characters in "+password1+": "+str(len(password1)))

print("Number of characters in "+password2+": "+str(len(password2)))

This works for me.

8 0
3 years ago
Read 2 more answers
True/False - According to CP-14 Sale of Modular Homes, a licensee who sells land and a modular home to be affixed to the land, t
Natasha_Volkova [10]

Answer:

True - According to CP- Sale of Modular Homes , a licensee who sells land and a modular home to be affixed to the land is subject to the laws and rules of the Commission,

Explanation:

CP-14 Scale of Modular Homes is a Commission that offers service by Licensees. Such Services such as a collection of rents ,development services,management of real property performed independently but not involving renting. These services are integrated with the real state. All money received in connection disbursed according to the law and the rules of Real Estate.

The Commission is a position is Real State, which stated that licensee who sells land modular homes to be affixed to the land to the purchaser in arranged and pre-arranged packaged transaction is subject to the laws and rules of Commission. All money received should be processed through a broker. It is another position of the Commission that of licensee sells a land, a modular home, and there has no brokerage relationship between owners of the land and licensee, then such sale will not comply with requirements of Commission Rule.

5 0
3 years ago
Other questions:
  • 9. In Electronic Codebook (ECB): a. The message is broken into independent blocks which are encrypted b. The message is broken i
    6·1 answer
  • Explain the role of the domain name system
    15·1 answer
  • An example of how a merge field will appear in a document is ______.
    7·2 answers
  • What is an example of a good URL?
    7·2 answers
  • Please conduct some research and find an article on Security Threats and please provide link of the article.
    5·1 answer
  • In a gear system, when you gain torque you lose what?
    11·1 answer
  • Suppose a process in Host C has a UDP socket with port number 6789. Suppose both Host A and Host B each send a UDP segment to Ho
    8·1 answer
  • I need help fixing this please
    6·2 answers
  • Which image file format consumes the most file<br> space?<br> 0<br> GIF<br> JPEG<br> PNG
    7·1 answer
  • ________ is a utility program included with most operating systems that allows you to move or eliminate files and give your oper
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!