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

Answers

Answer 1

The required expression that completes the code in Python is

if (user_level<= 25):

The complete code is given below that assigns 10 to “user_points” in case “user_level” is less than and equal to 25, and assigns “user_points” 10 if the “user_level” is greater than 25.

user_level = int(input("Enter some values from 15,20,25,30,35 :  " ))

       # requires to input some value from 15, 20, 25, 30, 35

if (user_level<= 25):        

   user_points = 10

''' checks whether “user_level” is less than and equal to 25. If it is evaluated to true then control goes to its body where 10 is assigned to “user_points '''

else:

   user_points = 0

''' in case “if conditions” is evaluated to false then else runs where 0 is assigned to “user_points” '''

print(user_points)

 # prints user_points

You can learn more about if-else in python at

https://brainly.com/question/28032696

#SPJ4


Related Questions

Which network device/component acts as a concentrator, centralizing all network connections for a segment to a single device?

Answers

A hub is a network device or component acts as a concentrator, centralizing all network connections for a segment to single device.

What is Hub?

A hub, also known as a network hub, is a point of connection that several devices utilize to connect to a network. For all the devices connected through a hub, it serves as a centralized connection.

There are many ports on the hub. Due to a packet being replicated to the other ports, if a packet reaches one port, it may see by all network segments. A network hub broadcasts all network data across all connections and does not have routeing tables or intelligence (unlike a network switch or router).

There are several types of hub available :

Passive HubActive HubIntelligent Hub

Hence, a hub is the device that acts as a concentrator, to centralize all network connection for a segment to a single device.

To get more information about Hub :

https://brainly.com/question/7960322

#SPJ1

print 3 numbers before asking a user to input an integer

Answers

Answer:

you can use an array to do this

Explanation:

(I've written this in java - I think it should work out):

Scanner input = new Scanner(System.in);

System.out.println("Enter an integer: ");

int userInt = input.nextInt();

int[] array = new int[userInt - 1];

for(int i = userInt-1; i < userInt; i--)

     System.out.println(array[i]);

menu. pin onenote to the taskbar. unpin microsoft edge from the taskbar. use settings to view detailed system information. answer the first three questions. use settings to set the display resolution to 1600 x 900. set the screen saver to blank and specify that it activate after 15 minutes of inactivity. use computer management to determine which users have been created for this system. answer the last question. on the desktop, create a shortcut to the event viewer.

Answers

Use the Windows 10 Interface and Change Display Settings. A taskbar is a component of a graphical user interface that serves a number of functions.

What is a taskbar in Microsoft?A taskbar is a component of a graphical user interface that serves a number of functions. Typically, it displays a list of the active programs. The taskbar's arrangement and specific appearance vary depending on the operating system, although it typically takes the shape of a strip that runs along one side of the screen. At the bottom of the screen, an operating system component called the taskbar can be found. It enables you to search for and open programs using Start and the Start menu, as well as view any open programs. he taskbar is typically located at the bottom of the desktop, but you can alternatively shift it to either the side or the top.

To learn more about taskbar, refer to:

https://brainly.com/question/1360051

#SPJ4

Write down the output of the given program. Show with dry run in table.

DECLARE SUB SHOW (A)
CLS
N= 87
CALL SHOW (N)
END
SUB SHOW (A)
DO
B = A MOD6 + 3
IF B MOD 4 = 0 THEN GOTO AA
PRINT B;
AA:
A=A-10
LOOP WHILE A>=50
END SUB​

Answers

Based on the given input: the dry run in table is given below:

DECLARE SUB SHOW (A)

CLS

N= 87

CALL SHOW (N)

END

SUB SHOW (A)

DO

B = A MOD6 + 3

IF B MOD 4 = 0 THEN GOTO AA

PRINT B;

AA:

A=A-10

LOOP WHILE A>=50

END SUB​

Dry Run: N=87

A= 87

B= A MOD 6 + 3 B MOD 4=0? PRINT B; A=A-10 A>=50?

B=87 MOD 6 + 3

=3+3=6 6 MOD 4 =0? (NO) 6 A=87-10=77 77>=50? Y

B=77 MOD 6 + 3

=5+3=8 8 MOD 4=0? YES – A=77-10=67 67>=50? Y

B=67 MOD 6

=1+3=4 4 MOD 4=0? YES – A=67-10=57 57>=50? Y

B=57 MOD 6

= 3+3=6 6 MOD 4=0? NO 6 A=57-10=47 47>=50? NO

Read more about qbasic here:

https://brainly.com/question/20727977

#SPJ1

Select the correct answer.
Which kind of food service outlets utilizes an intercom system for customers to order food?

Answers

Answer:fast food

Explanation:

What hardware devices would typically be represented by block device files in the /dev directory?

Answers

The hardware devices would typically be represented by block device files in the /dev directory is floppy drive/PATA hard disk drive/SCSI/SATA hard disk drive.

What is dev directory?

The /dev/ directory contains files that represent devices connected to the local system. These are not regular files that a user can read and write to; instead, they are known as device files or special files.

The /dev directory contains files that represent devices attached to the system, such as serial ports and pseudodevices like a random number generator.

Floppy drives/PATA hard disk drives/SCSI/SATA hard disk drives are typically represented by block device files in the /dev directory.

Thus, this can be represented by block device files in the /dev directory.

For more details regarding directory, visit:

https://brainly.com/question/7007432

#SPJ1

how are the networks classified based on the geographical area which covers?

Answers

The ways that networks classified based on the geographical area which it covers are:

LAN(Local Area Network). MAN(Metropolitan Area Network).WAN(Wide Area Network).What is Local Area Network Definition In a computer?

The term LAN (Local Area Network) is known to be a kind of group of devices that are said to be connected to one another in a single physical location, such as a building, office, or home, is known as a local area network (LAN).

Note that  the  LAN can range in size from a tiny home network with one user to a large enterprise network with hundreds of users.

Therefore, The ways that networks classified based on the geographical area which it covers are:

LAN(Local Area Network). MAN(Metropolitan Area Network).WAN(Wide Area Network).

Learn more about LAN(Local Area Network) from

https://brainly.com/question/15216230
#SPJ1

(a) draw the schematic which uses 4 instances of the entity nha to output the 2’s complement s[3:0] of the 4-bit input y[3:0]. both y and s are std logic vector(3 downto 0). keep it simple—draw instances of nha as a box labelled nha.

Answers

Arrays of std logic variables and signals are represented by the std logic vector type. These types define the fundamental VHDL logic operations: and, and, or, nor, xor, and xnor. These operate on each place and return another array; they require two identically sized arrays.

What is schematic diagram?Schematic refers to a model, plan, or outline. A concise, understandable graphical representation of a plan or model is what a schematic diagram is. Simple lines and symbols are used in schematics to convey details like what, how, and where. They are schematic, graphical, and wiring diagrams. A schematic diagram is a basic, two-dimensional representation of a circuit that demonstrates the operation and connectivity of various electrical components. The schematic symbols used to represent the components on a schematic diagram must be familiar to a PCB designer. Schematic diagrams display control elements in the order of their electrical connections, regardless of their physical placement.

To learn more about schematic, refer to:

https://brainly.com/question/28152656

#SPJ4

If you were to design a website, would you use a CSS framework? Why or why not?

Answers

My response is Yes, If I were to design a website, would you use a CSS framework because its helps me to the the work fast and better.

Should I employ a CSS framework?

Websites may easily be made to run with different browsers and browser versions thanks to CSS frameworks. This lessens the possibility that errors will surface during cross-browser testing.

Utilizing these frameworks is one that tends to make quicker and more convenient web development due to the fact that they come with ready-to-use stylesheets.

Therefore, based on the above, My response is Yes, If I were to design a website, would you use a CSS framework because its helps me to the the work fast and better.

Learn more about CSS from

https://brainly.com/question/27873531
#SPJ1

Task 2: Designing a Layout for a Website

Answers

Answer:

follow these steps Steps to Create Perfect Web Page Design Layout

1. Pen to paper ...

2. Add a grid to Photoshop and select your typography ...

3. Colors and layout ...

4. Think different ...

5. Focus on the details ...

Explanation:

What is the value of z after the following statements have been executed? int x = 4, y = 33; double z; z = (double) (y / x); group of answer choices

Answers

The value of z after the below statements have been executed: int x = 4, y = 33; double z; z = (double) (y / x) is 8.0

What is coding?

The term Coding is known to be often called called computer programming, and it is said to be the ways that people do talk or communicate with computers.

Note that  Code tells a computer the right actions to take, and based on the above, the value of x is doubled and so it will be 8.

Therefore, The value of z after the below statements have been executed: int x = 4, y = 33; double z; z = (double) (y / x) is 8.0

Learn more about coding from

https://brainly.com/question/22654163

#SPJ1

What’s the difference between an aptitude and an interest

Answers

Answer: Aptitude refers to an individual's potential for acquiring some specific skills. Aptitude tests are used to predict what an individual will be able to do if given proper environment and training. Interest is an individual's preference for engaging in one or more specific activities relative to others.

According to the video case discussing economic opportunities to make money with ar, vr, and 360 video content, what is the major difference between virtual reality and 360 video?.

Answers

Answer:

By 2030, VR and AR might add up to $1.5 trillion to the global GDP. By 2030, the global economy might benefit from VR and AR to the tune of $1.5 trillion. The main outcome of the PwC economists' economic impact analysis for this study is that.

Explanation:

Hope this helps

Which adapter would a technician install in a desktop computer to enable a video signal to be recorded from a video recorder to the computer hard drive?.

Answers

Video Capture Card is the adapter that a technician would install in a desktop computer to enable a video signal to be recorded from a video recorder to the computer's hard drive.

A video capture card helps in streaming as well as making videos from a different source. A video recorder is used to enable a video signal so that the videos recorded can be viewed on the computer's hard drive. Hence, the correct option is a video capture card. An analog signal is changed into a digital one using the video capture card.

Other options such as a video adapter is not correct because a video adapter does not get installed, rather is a discrete card in which videos are stored and can be viewed on the computer once it is connected to a computer.

Although a part of your question is missing, you might be referring to this question:

Which adapter would a technician install in a desktop computer to enable a video signal to be recorded from a video recorder to the computer's hard drive?

network interface card

video capture card

video adapter

TV tuner card

To learn more about video, click here:

https://brainly.com/question/26281658

#SPJ4

Which option would provide the most accurate ethnographic history of a refugee's experiences?
A) The official government account given to the news media
B A political scientist's published observations
C An audio recording of that refugee telling her story

Answers

Answer:

I thinks it b

Explanation:

Or a it can't be c because I doesn't make sense

An audio recording of that refugee telling her story. The correct option is C.

Thus, The most authentic ethnographic history of a refugee's experiences would likely come from an audio recording of the refugee describing her story.

Ethnography is a type of research that involves in-depth participation in the community or culture being researched as well as close observation. Researchers can learn a great deal about the ideas, feelings, and individual experiences of refugees by listening to their first-person accounts of their journey and displacement.

The refugee can tell their tale in their own words on an audio recording, keeping their own viewpoint and cultural background. Intricacies, feelings, and details that would be missed in other types of documentation can be captured with this technique.

Thus, An audio recording of that refugee telling her story. The correct option is C.

Learn more about Audio recording, refer to the link:

https://brainly.com/question/32433391

#SPJ7

2) What is application?​

Answers

Answer:

the software which is used to slove specific task is called application software

In technology terms, an application is a computer-generated program that carries out tasks.

At a family reunion, your cousin takes a picture of both of you with her phone, orders a print of it, and mails it to you with a note apologizing for how weird it looks. You would use the word “bitmappy” instead of “weird” to describe the picture. Describe a situation that could have led to this problem. If you wanted to find information online that you could send to your cousin about how to avoid this problem, what are two or three keywords that you could use in your search?
Why is “less is more” such an important design principle, and why do so many people seem to want to violate this rule?

Answers

A bitmap is an image file format that can be used to create and store computer graphics. Weird means something strange or unusual.

What is the meaning of the phrase " less is more"?

Sometimes keeping things simple is preferable to making them complex or advanced. Simplicity is better than extensive adornment. He should not use a word such as 'weird' and  'bitmap' in the search.

The idiom is used to convey the idea that sometimes having less of something—a lesser amount of it—can be preferable to having more of it. That a straightforward strategy frequently outperforms a complex one.

Therefore, A bitmap is an image file format that can be used to create and store computer graphics. Weird means something strange or unusual.

To learn more about, less is more, refer to the link:

https://brainly.com/question/20556896

#SPJ1

assume that a variable hoursworked has been assigned an integer. write a statement that assigns the value true to the variable workedovertime if hoursworked is greater than 40 and false otherwise.

Answers

The statement that assigns the value true to the variable worked overtime if hours worked are greater than 40 and false otherwise is as follows:

If hoursworked > 40; the workedovertime = true; else false.

What is an Integer?

An integer may be defined as a whole number that can be positive, negative, or zero but it does not include any sort of fractional number. Some examples of integers are -7, 0, 4, 9, etc.

In another form, the statement that assigns the value true to the variable worked overtime if hours worked are greater than 40 and false otherwise is also written as follows:

workedovertime = hoursworked > 40.

Therefore, the statement that assigns the value true to the variable worked overtime if hours worked are greater than 40 and false otherwise is appropriately mentioned above.

To learn more about Integers, refer to the link:

https://brainly.com/question/17695139

#SPJ1

chegg check your understanding while inputting data, you mistakenly enter a wrong value and want to start over to enter the correct value. pressing clears the display and allows you to immediately begin typing the right value. you are starting a new tvm problem, but there are values in the worksheet left over from a previous problem. to clear unnecessary data, you should press

Answers

Based on the given scenario, if you are starting a new tvm problem, but there are values in the worksheet left over from a previous problem. to clear unnecessary data, you should press "clean" excess cell formatting tool"

This is because when using Excel or other similar spreadsheets, you are using data values to make mathematical computations and manipulations of data to get answers, thus, in order to clear values that are left from using a formula or in a previous problem, the "clean" excess cell formatting tool" should be used.

What is a Spreadsheet?

This refers to the computer application that is used to manipulate and compute data and store them for easy retrieval.

Hence, we can see that Based on the given scenario, if you are starting a new tvm problem, but there are values in the worksheet left over from a previous problem. to clear unnecessary data, you should press "clean" excess cell formatting tool"

This is because when using Excel or other similar spreadsheets, you are using data values to make mathematical computations and manipulations of data to get answers, thus, in order to clear values that are left from using a formula or in a previous problem, the "clean" excess cell formatting tool" should be used.

Read more about spreadsheets here:

https://brainly.com/question/4965119

#SPJ1

2. What is one advantage of using a wireless network over a wired network?
You don't need to route wires to every physical location that needs a connection
Wireless networks are faster
O Wireless networks are more secure
O All of these are advantages of wireless networks

Answers

Answer:


A: You don't need to route wires to every physical location that needs a connection.

Answer they are more secure

Explanation:

Write a function create_password() expects two parameters: pet_name (a string) and fav_number (an integer). The function returns a new password generated using the following pattern:

Answers

Answer:

Explanation:a

What is Cloud Storage? I need a short definition.​

Answers

a computing model that stores data on the internet through a cloud computing provider who handles data storage as a service.

note: this is a multi-part question. once an answer is submitted, you will be unable to return to this part. consider the following propositions: l: the file system is locked. q: new messages will be queued. n: the system is functioning normally. b: new messages will be sent to the message buffer. the goal of this exercise is to determine whether the following system specifications are consistent: if the file system is not locked, then new messages will be queued. if the file system is not locked, then the system is functioning normally, and conversely. if new messages are not queued, then they will be sent to the message buffer. if the file system is not locked, then new messages will be sent to the message buffer. new messages will not be sent to the message buffer. are the given system specifications consistent?

Answers

If the variables are given truth values, the system is consistent. The message buffer won't receive any new messages.

What are system specifications consistent?Constant system specifications. If it is possible to give the proposition variables truth values that make each proposition true, then the proposition list is consistent. Users are unable to access the file system whenever the system software is upgraded. Users can save new files if they have access to the file system. Users are unable to save new files if the operating system is not being updated. Only if the router supports the new address space can it deliver packets to the edge system. Installing the most recent software release is required for the router to support the new address space. If the most recent software release is installed, the router can send packets to the edge system.

To learn more about Constant system specifications,  refer to:

https://brainly.com/question/18163781

#SPJ4

According to the video case discussing economic opportunities to make money with ar, vr, and 360 video content, what is the major difference between virtual reality and 360 video?.

Answers

Answer: The way the user moves through the content

Explanation:

Could someone please tell me what I did wrong here? Thank you!!I’ll give Brainliest

Answers

The code looks fine I think it’s the number that’s being inputed is what is causing the value error, I’m unfamiliar with this ide are you typing in the number yourself?

when this program is executed if the user types 10 on the keyboard what will be displayed on the screen as a result of executing line 5?

Answers

When this program is executed, it will print 30. The correct option is A.

What is coding in python?

Python is a computer programming language that is frequently used to create websites and software, automate tasks, and analyze data.

Python is an interpreted, high-level computer program. Its design philosophy prioritizes code readability by employing significant indentation. Python is garbage-collected as well as interactively keyed.

The given program indicates:

num1 = int(input())

num2 = 10 + num1 * 2

print(num2)

num1 = 20

print(num1)

Here, the expression, num2 = 10 + num1 * 2 will be 30, which will be executed on the screen.

Thus, the correct option is A.

For more details regarding python, visit:

https://brainly.com/question/13437928

#SPJ1

Your question seems incomplete, the missing options are:

A. 30

B. 40

C. 10 + 10 * 2

D. 10 + num1 * 2

A data warehouse is a __________ collection of data, gathered from many different __________ databases, that supports business analysis activities and decision-making tasks.

Answers

A data warehouse is a logical collection of data, gathered from many different operational databases, that supports business analysis activities and decision-making tasks.

A data warehouse is a place where a company or other entity stores information electronically in a secure manner. It uses logical data models that are employed to depict data entities, properties, keys, and relationships.

In a data warehouse, data is routinely modified and imported from a variety of transactional systems, relational databases, and other sources.

Learn more about data warehouse here

https://brainly.com/question/28427878#

#SPJ4

The if function evaluates a certain condition and returns the value you specify if the condition is true, and another value if the condition is false. True or false?.

Answers

It is true that the "if" function evaluates a certain condition and returns the value you specify if the condition is true, and another value if the condition is false.

What is "if" function?

The IF function is a popular Excel function that allows you to make logical comparisons between a value and what you expect.

As a result, an IF statement can have two outcomes. If your comparison is True, the first result is True; otherwise, the second result is False.

If both if statement conditions can be true at the same time, use two if statements. If the two conditions are mutually exclusive, meaning that if one is true, the other must be false, use an if/else statement.

Thus, the given statement is true.

For more details regarding if function, visit:

https://brainly.com/question/20497277

#SPJ1

Skyler needs to print mailing labels for a fundraising campaign her company is hosting. which type of software should she use?

Answers

Since Skyler needs to print mailing labels for a fundraising campaign her company is hosting, the type of software that she need to use is Word Processing software.

What is word processing software and examples?

The term Word Processing is known to be a term that connote the act or process why which on make use of the computer to make , edit, save as well as print documents.

Note that In order to carry out word processing, one need to make use of a specialized software (called the  Word Processor).

Therefore, based on the above, Since Skyler needs to print mailing labels for a fundraising campaign her company is hosting, the type of software that she need to use is Word Processing software.

Learn more about Word Processing software from

https://brainly.com/question/985406
#SPJ1

assume that the variables gpa, deanslist and studentname, have been declared and initialized. write a statement that adds 1 to deanslist and prints studentname to standard out if gpa exceeds 3.5. if (gpa > 3.5) java

Answers

A statement that adds 1 to deanslist and prints studentname to standard out if gpa exceeds 3.5. if (gpa > 3.5) java and assuming that the variables gpa, deanslist and studentname, have been declared and initialized is given below:

if (gpa > 3.5) {

deansList += 1;

System.out.print(studentName); }

What is a Program?

This refers to the sequence of steps that is used to issue commands to a system to execute tasks.

Hence, we can see that A statement that adds 1 to deanslist and prints studentname to standard out if gpa exceeds 3.5. if (gpa > 3.5) java and assuming that the variables gpa, deanslist and studentname, have been declared and initialized is given below:

if (gpa > 3.5) {

deansList += 1;

System.out.print(studentName); }

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

Other Questions
What was the opening price of Dow Jones Industrial Average on Oct 20, 2017 in the format of XXXXX.XX? It is important to make the computer program as efficient as possible by removing all the unneccessary information. This is called as_________ Who killed Gandhi and why? Paisley is deciding between two parking garages. Garage A charges an initial fee of $5 to park plus $3 per hour. Garage B charges an initial fee of $11 to park plus $2 per hour. Let A A represent the amount Garage A would charge if Paisley parks for t t hours, and let B B represent the amount Garage B would charge if Paisley parks for t t hours. Write an equation for each situation, in terms of t , t, and determine the interval of hours parked, t , t, for which Garage A is cheaper than Garage B. systems, including both business systems, and educational systems, are actually very simple. the main idea is that systems have parts that fit together to make a whole. what is "interesting is how those parts are connected together" (frick, 1991). You make $9.25 an hour and want to buy a new watch thats costs $277.50. Write and solve an inequality to find out how many hours you will have to work to have enough money for the new watch. The point C(4,5) is rotated 270 counterclockwise around the origin. What are the coordinates of the resulting point, C'? PLS HURRY WILL GIVE BRAINLIESTUse the commutative property to simplify the expression 1/4 + 1/3 + 3/4A. 1/4 + ( 1/3 + 3/4) = 1/4 +13/12 = 16/12 = 1 1/3B. 1/4 + 3/4 + 1/3 = 1 + 1/3 = 1 1/3C. ( 1/4 + 1/3 ) + 3/4 = 7/12 + 9/12 = 16/12 =1 1/3D. 1/12 (3+ 4+ 9) = 1/12(16) = 16/12 = 1 1/3 the center of mycenaean society was the village, which gave a sense of family and responsibility to the people and encouraged loyalty to the king, who was depicted as a father to his people. How do life zones different in each type of aquatic ecosystem? natural numbers or counting numbers that real. what is your definition of the term? give examples. A thrombolytic agent, used in the treatment of ischemic stokes, is abbreviated as a(n)? According to Section 4, Ulrich in the forest is due to his enemy's presence. Ironically, the end of the story reveals which of the following as the real cause of the roebucks' running "like driven things"? (PLEASE HELP)A. The intense storm B. The presence of hunters C. The presence of wolves a student practicing for cross country meet runs 250 m in 30 s . what is her avarge speed on Arya birthday about 20 chocolate Her friends finished 7/10 chocolates How many chocolates were left When purified cytochrome oxidase is exposed to cyanide, the cyanide binds reversibly and with high affinity to the enzymes active site. What will be the likely outcome if mitochondria are exposed to high levels of cyanide?. i will mark brainlest How do the sporophyte stage and gametophyte stage make a cycle ? What is the main purpose of the legislative branch of the US government?(pleases answer with one of these letter below)A. to make lawsB. to interpret lawsC. to carry out lawsD. to veto laws QUESTION The president of Ghana appoints almost all heads of public sector organization. In NOT more than TWO (2) pages, briefly explain FOUR (4) implications of this requirement for effective functioning of public administration in Ghana.