4.5 code practice phython code answers

Answers

Answer 1

Answer:

count = 0

data = input('Please enter the next word: ')

while data!= "DONE":

         count = count + 1

         print("#" + str(count) +": You entered the word " + data)

         data = input("Please enter the next word: ")

print("A total of "+ str(count) + " words were entered.")

Explanation:

So the code is asking us to put in words from the user and then it will count those words in total.

so first we want the code to start from 0 to get an accurate count

count = 0

boom, first line.

second you will ask the user to input a word with a data string on it to then have it stored

data = input('Please enter the next word: ')

now if the user enters DONE the code will know to stop and give the total

while data != "DONE":

then we will have the code count the words we inputed,

count = count + 1

next we want to know how many words we put in "the whole point of the code.

print("#" + str(count) +": You entered the word " + data)

the data is very important

if the user didnt enter DONE we want the code to continue so we ask the user to enter another word    

  data = input("Please enter the next word: ")

now we do the same thing as the code before, now we show how many words were entered in total

print("A total of "+ str(count) + " words were entered.")

Stay blessed

Stay up


Related Questions

A loop that will output only the names that come before "Thor" in the alphabet from the names list.


names = ["Peter", "Bruce", "Steve", "Tony", "Natasha", "Clint", "Wanda", "Hope", "Danny", "Carol"]



Please answer with code for someone who is starting to learn lists in python

Answers

The following is a loop that will only output from the names list names that are in alphabetical order before "Thor":

names = ["Peter", "Bruce", "Steve", "Tony", "Natasha", "Clint", "Wanda", "Hope", "Danny", "Carol"]

names.sort()

for x in names:

 if x == "Thor":

     break

 else:

     print(x)

How do loops work?

In computer programming languages, a loop is a sequence of instructions that constantly repeats itself up until a predetermined condition is met.

The difference between decorative and extended program loops is the time it takes to calculate how many times the loop iterates before the loop actually executes.

A loop is referred to as a pretest if the specified condition is tested before the block of code that makes up the loop is executed. The loop is to be continued until the provided condition becomes false.

To learn more about the loop, refer to the link:

brainly.com/question/25955539

#SPJ4

a rts frame is the first step of the two-way handshake before sending a data frame. true or false

Answers

It is accurate to say that sending an arts frame precedes sending a data frame in the two-way handshake.

What encryption method does the WPA2 wireless standard employ?

The Advanced Encryption Standard (AES) employed by WPA2 is the same one that the US government employs to protect sensitive documents. The highest level of protection you can give your home WiFi network is this one.

What data integrity and encryption technique does WPA2 employ?

The Advanced Encryption Standard (AES) encryption, combined with robust message authenticity and integrity checking, are the foundation of the WPA2 protocol, which offers substantially stronger privacy and integrity protection than WPA's RC4-based TKIP. "AES" and "AES-CCMP" are two examples of informal names.

To know more about data frame visit:-

https://brainly.com/question/28448874

#SPJ4

GlobalMan Tech purchased raw material from NewBizTr Co. When the sales team at NewBizTr Co checked the system, there was no payment detail in the system, though the order-delivery details were present. Also, it seemed that someone had tampered with the details of the previous order. Which important data-management features were compromised?

The (BLANK) of data was compromised because there were corresponding payment details. The (BLANK) of data was compromised as someone had tampered with the details of the previous order.


1)

integrity

security

archiving

reusing


2)

integrity

accuracy

security

archiving

Answers

Both data security and crucial data management procedures were violated. The privacy of the information was harmed since the order's specifications were changed.

How do security keys work?

A privacy key is a tool that makes it easier to access other devices, computer systems, and apps or to do tighter authentication. Security tokens are another name for secret keys. Security keys are item items that need a main device to function.

What makes IT security?

Property was pledged as security for a debt or commitment of the owner in the term's original sense, which dates to the middle of the 15th century. The phrase began to refer to a document that proved a debt in the 17th century.

To know more about Security visit :

https://brainly.com/question/5042768

#SPJ4

You're using a Linux distribution that uses RPM for package management. Which command would you use to check to see if the httpd package, the Apache HTTP Server package, is installed

Answers

The command line command yum list installed httpd will check to see if the Apache HTTP Server package is installed on a Linux distribution that uses RPM for package management.

In Linux, what do yum and RPM mean?

For Linux distributions based on Red Hat, two package management systems were developed: RPM and YUM. A collection of tools called a package management system is used to automate the installation, updating, and removal of packages. The fundamental functional differences between the two package managers outweigh their similarities.

What do Linux's APT and yum stand for?

Popular package management programs designed for Debian-based and Red Hat-based Linux distributions, respectively, include APT and YUM. The two package managers are among of the most widely used and simple to use tools for package management.

To know more about HTTP visit :-

https://brainly.com/question/13155990

#SPJ4

When you identify the data elements in a new database, you typically subdivide data elements into __________.
1 makes maintenance easier
2 clustered
3 The column is frequently updated.
4 the smallest practical components

Answers

The smallest practical components

What tools are available for combining data from two or more tables into a single result set?

You may wish to combine records from one table or query with records from one or more other tables to generate a single set of records – a list including all of the records from the two or more tables. A union query in Access serves this function.

The most prevalent sort of relationship between tables in a database is one-to-many. A record in one table corresponds to zero, one, or many records in another database in a one-to-many (also known as many-to-one) connection.

To learn more about subdivide data to refer:

https://brainly.com/question/13261775

#SPJ4

Perfective maintenance usually is cost effective ____ the system's operational life.
A) early in
B) during the middle of
C) late in
D) all of the above

Answers

In the middle of the system's operational life, perfective maintenance is typically cost-effective.

Which kind of maintenance improves an existing system?

An operating system receives improvements through adaptive maintenance, making it simpler to utilize the system. Contrary to corrective maintenance, adaptive maintenance is less urgent since business and technological changes may take time to materialize.

What is the procedure for managing modifications to the system requirements while the software is being developed?

The Software Development Life Cycle (SDLC) is a procedure used in software engineering to systematically manage, coordinate, and regulate changes made to documents, codes, and other entities.

To know more about cost-effective visit :-

https://brainly.com/question/28448166

#SPJ4

Joe, a user, wants his desktop RAID configured to allow the fastest speed and the most storage capacity. His desktop has three hard drives. Which of the following RAID types should a technician configure to achieve this?
A. 0
B. 1
C. 5
D. 10

Answers

For Joe, the technician has to set up RAID 0. By dividing data into many copies, RAID 0, also known as the striped volume or stripe set, is set up to provide the highest performance and greatest storage space.

How does a RAID function?

Data is duplicated across two drives in the array using RAID 1 (mirrored disks), which offers complete redundancy. The identical data is always stored on both drives at the same time. As long as one disk remains, no data is lost.

Why could someone utilize RAID?

Redundant Array of Independent Disks, or RAID, is a technology that combines many hard disks to increase performance. RAID configuration might affect how quickly your computer operates.

To know more about RAID visit:

https://brainly.com/question/14669307

#SPJ4

A user notices a laser printer is picking up multiple sheets of paper from one of its paper trays. The problem started last week and has gotten worse. Which of the following is MOST likely the cause of this problem ?
A. Separation pad
B. Feed roller
C. Registration roller
D. Duplex assembly

Answers

One of the paper trays of a laser printer starts to fill up with numerous sheets of paper, the user observes. The problem is most likely caused by a separation pad.

What is a disadvantage of a laser printer?

Laser printers are unable to print on several types of paper, in contrast to inkjet printers. Anything that is heat-sensitive cannot be passed through them. On home laser printers, simple graphics can be created, but clear images are challenging. If you want to print pictures, get an inkjet printer.

Why would you use a laser printer?

Popular computer printers like laser printers employ non-impact photocopier technology, which avoids damaging the paper with keys. A laser beam "draws" the document on a selenium-coated surface when a document is supplied to the printer.

To know more about laser printer visit:

https://brainly.com/question/5039703

#SPJ4

Which of the following warns that the computer is infected and needs immediate attention? a. compression tool b. anti-virus software c. FBI consumer alert b. web filter

Answers

Anti-virus software typically warns that the computer is infected and needs immediate attention. Anti-virus software is designed to identify and protect against viruses and other malware that can damage or compromise the security of a computer. If the anti-virus software detects a virus or other threat, it may issue a warning to the user to alert them to the issue and recommend steps to take to address it.

You created a pen as an instance of turtle. You drew a line. What does the following line do?

up()


moves all drawings one step up

"lifts" the pen so you can move it without drawing

moves the pen one step up

points the pen so it is pointing straight up

Answers

Answer:you will program a Java version of the robot to draw some simple images. ... If you do this (or instantiate the object by right-clicking in BlueJ), you ... to draw a line when it moves, use the penUp() method to raise the pen (and ... Note that you can create multiple turtles and they will all show up on

Explanation:

When you create a pen as an instance of turtle and draw a line, the line up(): C. moves the pen one step up.

What is an instance?

In object-oriented programming (OOP) language, an instance can be defined as the variables that are declared within a class.

This ultimately implies that, an instance is a realization of any object belonging to a class.

In this context, the line up() moves the pen one step up when you create a pen as an instance of turtle and draw a line.

Read more on object class here: brainly.com/question/20264183

#SPJ2

When using for loops and two-dimensional arrays, the outside loop moves across the ___________ and the inside loop moves across the ___________.

Answers

When using for loops and two-dimensional arrays, the outside loop moves across the rows and the inside loop moves across the columns.

In a two-dimensional array, how should each loop be used?

Improved for each loops or layered for loops can be used to iterate across 2D arrays. A 2D array's outer loop typically traverses the rows, whereas the inner loop often covers the columns in a single row. The length of a 2D array indicates the number of rows. length array for a row

Why do we use two for loops with two-dimensional arrays?

To better understand an array's contents, think of a two-dimensional array as a matrix with rows and columns. A 2D array can be looped over by first iterating through each row, followed by iterating through each column in each row. We require two loops that are nested inside of one another because of this.

To know more about array visit

brainly.com/question/14291092

#SPJ4

You answer a call from a number of users who cannot access the mail server. Which utility would you use to quickly see if the sendmail service is running?

Answers

If you want to check whether the sendmail service is active rapidly, use the ps program.

Which command shows the most specific information about each active process?

Processes are active at all times that the system is active. The ps command allows you to see a list of currently active processes as well as their status and other details. You can define which processes to list using a number of flags in the ps command.

What does a process with no nice command execute as by default?

The default increment of the nice command is 10, so if you do not supply an increment value, that is what happens. If you want to run a command with a higher priority, you must be a root user. A process's pleasant value, or priority, is frequently referred to.

To know more about ps program visit :-

https://brainly.com/question/15057124

#SPJ4

Question 5 After previewing and cleaning your data, you determine what variables are most relevant to your analysis. Your main focus is on Rating, Cocoa.Percent, and Company.Location. You decide to use the select() function to create a new data frame with only these three variables. Assume the first part of your code is: trimmed_flavors_df <- flavors_df %>% Add the code chunk that lets you select the three variables.
What company appears in row 1 of your tibble? Videri Soma A. Morin Rogue

Answers

Adding the code section that allows you to choose from the three variables is the first step in your programme.

(Select) Rating, Cocoa.Percent, Company Location)

A code block is defined?

Runnable R code is referred to as a code chunk. Reproducing the paper will need new computations. The probability of a mismatch between a paper's commentary and its discussed results is decreased, which makes code chunk technology advantageous.

Delete a code chunk by what method?

Currently, my workaround is to fold the chunk and erase it or pick lines while holding down the "shift" key. The keyboard shortcuts for several cell actions supported by Jupyter Notebook include insert, run, cut, copy, and move.

To know more about  code chunk visit:-

https://brainly.com/question/30030609

#SPJ4

Which of the following pairs of components constitutes the human side of information systems? A) software and procedures. B) software and people

Answers

The human component of information systems is made up of pairs of components called People and Procedures.

Which of the five parts that make up an information system is the most straightforward to alter?

In terms of organizational disruption and ease of change, describe how the five components of an information system are organised. Data, software, hardware, processes, and people. The easiest things to alter are on the computer side, whereas the most difficult are on the human side. Of the following.

which is a part of an information system?

Hardware, software, databases, networks, and people make up the core components of an information system. To execute input, process, output, feedback, and control, these five elements must work together.

To know more about information systems visit :-

https://brainly.com/question/14688347

#SPJ1

You are asked to recommend an email retrieval protocol for a company's sales team. The sales team needs to access email from various locations and possibly different computers. The sales team does not want to worry about transferring email messages or files back and forth between these computers. Which email protocol is designed for this purpose

Answers

With IMAP4, a mail server can store messages that users can access from different locations and client devices. A POP3 server necessitates the user downloading their email.

Which of the following protocols allows for safe email retrieval?

Email on a remote web server can be accessed from a local client using the Internet Message Access Protocol (IMAP), a mail protocol. The two most often used Internet mail protocols for obtaining emails are IMAP and POP3.

What one of the following protocols do email servers communicate with one another using?

Over the Internet, emails are delivered using the Simple Mail Transfer Protocol (SMTP). Most email clients send messages to the server using this protocol.

To know more about IMAP4 visit :-

https://brainly.com/question/14289109

#SPJ4

In Bash which of the following commands can you use to view the contents of a document?
open
cat
less
dog

Answers

You can view a document's contents in Bash by using the cat and less commands.

In Linux, how do I view a directory's contents?

To view the contents of a directory, use the ls command. The ls command prints the name of each provided File, the contents of each specified Directory, and any additional information you request with the flags to standard output.

How do you view the contents of a file using the Windows command prompt?

Scripts for showing file contents (pg, more, page, and cat commands) You can change the speed at which your files are shown and inspect the contents of a file with the pg, more, and page commands.

To know more about Bash visit :-

https://brainly.com/question/30027290

#SPJ4

Are there any incremented values from one loop to the next?

What variables may be used to track each loop in the program?

Answers

Answer:

You can place any expression you'd like in the final expression of the for loop, but it is typically used to update the counter variable.

counter variable is used throughout those parts. That variable keeps track of the current repetition, and is typically named i . The initialization part initializes the counter variable to a starting value.

Explanation:

A company's desire to sell products and services: A. will ultimately lead to its doom B. explains why the web took off OO C. can drive innovations in media. D. is not reflected in social media.​

Answers

Answer:

C. can drive innovations in media.

Explanation:

A product can be defined as any physical object or material that typically satisfy and meets the demands, needs or wants of customers. Some examples of a product are mobile phones, television, microphone, microwave oven, bread, pencil, freezer, beverages, soft drinks etc.

Innovation typically involves the creation of a new product of any category such as automobile, building, phones, electronics, etc., that generates money for the innovators or manufacturers through purchase made by the end users (consumers).

Hence, a company's desire to sell products and services can drive innovations in media as it would be willing to create contents and resources that would significantly boost its sales, competitive advantage and market attractiveness.

Additionally, these desires would spur the company into making frantic efforts to use the social media in new ways or manner.

Mike needs to export some animation videos from his smartphone to an online platform. Which common file format can he use for this purpose?

A..swf
B..flv
C..mov
D..3gp

Answers

The answer would be b

Answer:

The correct answer is D.  3gp

Explanation:

software that combines text static images ,video animation and sounds is known as?​

Answers

Answer: Interactive media

Explanation:

Interactive media, also called interactive multimedia, any computer-delivered electronic system that allows the user to control, combine, and manipulate different types of media, such as text, sound, video, computer graphics, and animation.

Hope This Helps!

Interactive media is the answer

Shreya has combined all the cells in a single leftmost column in a table. Instead of identifying the category multiple times, she would like to combine these cells and then structure the word "Appliances” vertically in the cell.

Where will Shreya find these options?

Insert tab, Tables group
Design tab, Merge group
Table Tools Design tab, Merge group
Table Tools Design tab, Merge group, Alignment group

Answers

Answer:

the answer for this is ,table tools,design tab,merge group

WILL MARK BRAINLIEST Question #2
Dropdown
You compared each letter in the correct word to the letter guessed.
Assume the correct word is "cloud."
Finish the code to compare the guessed letter to the "u" in "cloud."
if guess ==
correct(4)
correct(3)
5-0043.2020102 correct[3]
correct[4]

Answers

Answer:

correct[3]

Explanation:

Required

Which expression points to the u in "cloud"

First, it should be noted that "cloud" is a string and as such, the first element is represented as index 0, the next as index 1, etc.

Using the above as a guide, the u is as index 3

To access the elements of a string, we use: stringname[index]

In this case, the string name is correct.

Hence, the correct statement is: correct[3]

Which of the following methods of network access control involves using a secure server room and/or lockable hardware cabinets?
Port-based Network Access Control
Firewalls
Physical port security
MAC Filtering

Answers

Physical port security involves the use of secure server rooms and lockable hardware cabinets to protect network access.

Network Access Control Using Physical Port Security

Physical port security is a method of network access control that uses secure server rooms and lockable hardware cabinets to protect network access. This type of security is effective in preventing unauthorized users from accessing the network through physical access to the ports. It typically involves the placement of locks on network ports, cabinets, and server rooms. This ensures that only authorized persons can gain access to the network and its resources. Additionally, server rooms are kept in secure locations and temperature and humidity are strictly monitored.

Learn more about network: https://brainly.com/question/8118353

#SPJ4

List all of the permutations of {a, b, c} no replacement and length 3
Proof

Answers

If subsets, then the answer is correct.Notice that Part 4 * Part 5 = Part 1 6 * 10 = 60

What is permutation example?

An arrangement of things in a precise order is called to as a permutation. Here, the members of sets are arranged in a linear or relation to a matter. For illustrate, the set A=1,6 has a permutation of 2, which is 1,6,1. There is no other method for organizing the pieces of set A, as you can see.

1. That would be 5*4*3 = 60

Part 2 is the same as part 3,

just replace every "e" with a "c".

Part 3: correct

For enumerations, it's a good idea to be systematic in doing them,

so you don't miss any.

Alphabetical order would be good

a _ _, d _ _, e _ _

a(de, ed), d (ae, ea), e (ad, da)

ade, aed, dae, dea, ead, eda

Part 4: count the number of permutations in

part 2 or part 3: ? six.

Part 5: "subjects" ? or "subsets"

If subsets, then the answer is correct.

Notice that Part 4 * Part 5 = Part 1

6 * 10 = 60

To know more about permutations visit:

brainly.com/question/1216161

#SPJ4

The complete question is -

List all the permutations of {a,b,c}. This is a permutation and repeats are not allowed Therefore, there are p(3,3)= 3!/0! = 6 permutations, which are a, b, c ; a, c, b ; b, a, c ; b, c, a ; c, a, b ; c, b, a.

Nora has shared a document with others, and she needs to be able to easily identify when others are modifying the
documents and where those modifications have been made.
Which feature should Nora use?
Password Protection
OneDrive storage
Track Changes
Protected View

Answers

Answer:

C, Track Changes

Explanation:

Answer:

C. Track Changes

Explanation:

hope this helps :)

What do you do if fedex tracking says "unfortunately we are unable to retrieve your tracking results at this time. please try again later?"

Answers

Real-time processing virtually instantaneously processes data. There is no waiting or pause involved in this process.

How can I use a tracking number to find a package?

Once you receive your tracking number, tracking your delivery is simple. The USPS Tracking page just requires the tracking number to be entered. Along with additional tracking details, such as delivery and/or attempted delivery information, you'll receive the item's current status.

How can I find out a package's precise location?

If you have your USPS shipment tracking number, you can use Circuit to see where your package is in real time. After a few days have passed after your box was dispatched, you can get in touch with a USPS customer care agent if it is still missing.

To know more about tracking visit:

https://brainly.com/question/28234708

#SPJ4

Which risk is most effectively mitigated by an upstream Internet service provider (ISP)?
A. Distributed denial of service (DDoS) B. Lost productivity C. Firewall configuration error
D. Unauthorized remote access

Answers

A. Distributed denial of service (DDoS). Upstream Internet service providers are best at reducing risk (ISP).

Which course of action will best safeguard the Internet of Things?

Which course of action, while still fulfilling business objectives, swiftly implementing security upgrades.

What online safety precautions are most crucial?

Don't share information like your mother's maiden name, birthday, or address online. Instead, secure your privacy settings.Be wary of calls for connection from strangers.your internet connection securely.Always use a password to secure your home wireless network.

To know more about  Internet service provider visit:

https://brainly.com/question/18000293

#SPJ4

Edhesive Assignment 11

Answers

This worked for me when I took the course

What are the five elements that are needed to create a connected world or a network?

Answers

Categories, providers, access technologies, protocols, and convergence.

What are the five networking components that make up a connected world?

Hardware, software, wireless or wired transmission media, network topology, & communications protocols are some of the elements of a network architecture.

What makes IPTV unique?

Personalization, minimal bandwidth usage, and device support are all features of IPTV.Users can access an accessible and dependable network infrastructure through LANs, WANs, and MANs.

To know more about networking visit:

https://brainly.com/question/15002514

#SPJ4

Your organization uses Windows desktop computers. You need to implement an efficient solution for deploying updates to the Windows computers. What should you deploy

Answers

When a practical method for distributing updates to Windows computers is required, use Windows Deployment Services.

In which of the following services does WSUS engage?

WSUS makes use of seven services. Update Service (wsusservice.exe), Reporting Web Service, API Remoting Web Service, Client Web Service, Simple Web Authentication Web Service, Server Synchronization Service, and DSS Authentication Web Service are among them.

What security protocol will you choose to encrypt web traffic from the list below?

The principal protocol for transmitting data between a web browser and a website is hypertext transfer protocol secure (HTTPS), which is HTTP. To improve data transfer security, HTTPS is encrypted.

To know more about Windows Deployment Services visit :-

https://brainly.com/question/28874539

#SPJ4

Other Questions
find the area of the shaded regions below. give your answer as a completely simplified exact value in terms of (no approximations) could someone help me i need the real answers fast will give brainiest [tex] \sf { \fcolorbox{green}{g}{What is \: the diffrence between alkali and base in simple defination}} [/tex] Find the missing side lengths. Leave your answers as radicals is simplest form. The absolute value function graphed below can also be represented by a piecewise function.Determine which function is represented by the graph.please help!!! A 50 kg person and a 70 kg person are sitting on a bench close to each other about .5 m apart.Estimate the magnitude of the gravitational force each exerts on the other. bloggers have been successful in fact-checking news stories from big media outlets.a. trueb. false Which bacterial STI causes more complications in women than men Pls help tysm I will mark you brainliest pls Im stuck on this You are the Arts Club Secretary of your school. Write a letter to the Principal in about 100-120 words requesting him/her to grant permission to start a Drama club in the School. Can anyone help explain this math equation like I gotta turn this math in by midnight tonight!! I will give brainlist btw!! which two equivalent to 4(7x + 2 + x)? In a high latitude rainforest,the dominant type of photosynthesis is most likely to beA) both C3 and CAM.B) C4.C) CAM.D) both C4 and CAM.E) C3. ASAP HELP!!!!!!! LIMITED TIME!!!!!!! PLEASEHydrogen fuel cells, biodiesel, and long-term electric batteries are potential solutions toSelect one:1. carbon sequestration2. replacing coal as a major fuel for generating electricity3. cap-and-trade emission control4. reducing carbon emissions from cars and trucks The integral 1 (y2y4) dy 0 represents the volume of a solid. Describe the solid.O The solid obtained by rotating the region in the first quadrant bounded by the curves x = y2 and x = y4 around the x axisO The solid obtained by rotating the region in the first quadrant bounded by the curves x = y2 and x = y4 around the y axisO The solid obtained by rotating the region in the first quadrant bounded by the curves x = y and x = y2 around the x axisO The solid obtained by rotating the region in the first quadrant bounded by the curves x = y and x = y2 around the y axis Which of the following may soon be considered an incentive to hiring the elderly?a) Baby boomers are retiring, so the workforce is shrinking.b) Government tax incentives for hiring the elderlyc) The elderly going back to school for additional skillsd) Legal actions and lawsuits for firing the elderly One of the most telling signs of whether a company's market position is strong or precarious isa. whether it has a lower stock price than key rivals.b. whether it is in a bigger or smaller strategic group than its closest rivals.c. whether its prices and costs are competitive with those of key rivals.d. whether its product is strongly or weakly differentiated from rivals.e. the opinions of buyers regarding which seller has the best product quality and customer service. Do you think Charlemagne was a more of a hero or a villain? Why? ANSWER FAST I JUST NEED ANSWER HURRY PLSSSS! helppp PLEASEE !!! lol