When you are trying to anticipate user errors, which do you think is better to use—an if else statement or a try except statement? Why? Can you think of a rule that you could follow to determine which you should use?

Answers

Answer 1

Answer:

try except

Explanation:

You shouldn't use an if else statement for anticipating user errors since try-except was made for executing statements until encountering an error, while if-else is checking for a condition and if its not met, it will do an else.


Related Questions

What do you call a software program that runs on a web server? Please respond ASAP! Please no comments unless you have a legit answer!

Answers

A software program that runs on a web server is a web browser

Write a Python program to solve the problem described above. Define a function satisfactory_meal(Meal) which takes a single parameter, Meal, and returns True or False. Meal is a list of lists of the form [Dish_number, Organic, Has_dairy, Has_meat, Locally_sourced] where the Dish_number is a positive integer and the other list items are 1 or 0. The function should return True if the meal is satisfactory, and should return False otherwise. You may assume that the Meal list will be in the correct format when the function is called; you do not have to error-check for a non-list or an incorrectly formed list. The dishes in list Meal are not necessarily sorted by dish numbers or any other order. In your program, you may write and call any additional functions that are helpful in the computation. Examples: satisfactory_meal([ [8, 0, 0, 0, 1], [9, 1, 1, 0, 1], [23, 1, 0, 0, 1], [2, 1, 0, 1, 0], [6, 0, 0, 1, 1] ]) should return True, satisfactory_meal([ [4, 1, 0, 0, 0], [7, 0, 1, 0, 1], [90, 0, 0, 0, 0], [3, 0, 0, 1, 1] ]) should return False, and satisfactory_meal([ ]) should return False.

Answers

def dx(fn, x, delta=0.001):

   return (fn(x+delta) - fn(x))/delta

def solve(fn, value, x=0.5, maxtries=1000, maxerr=0.00001):

   for tries in xrange(maxtries):

       err = fn(x) - value

       if abs(err) < maxerr:

           return x

       slope = dx(fn, x)

       x -= err/slope

   raise ValueError('no solution found')

A combination of numbers and symbols used to express a calculation. Question 11 options: Formula Formula Bar Worksheet Workbook

Answers

Answer:

Formula

Explanation:

Formulas are functions that can express a calculation.

Glenda is searching airline schedules on HolApp, a mobile Web application. While browsing the application, a banner appears on the mobile screen showcasing offers and discounts on air tickets. The banner is best referred to as a(n) ________.

Answers

Answer:

online display advertisement

Explanation:

Q:

Glenda is searching airline schedules on HolApp, a mobile Web application. While browsing …

A. online display advertisement

B. contextual advertisement...

A:

A

By default, how many levels does the outline view contain?.

Answers

Answer:

Nine

Explanation:

By default, how many levels does the Outlining View contain? Nine.

What is the device that converts a sign from binary or analog form into a signal of another form

Answers

Answer:

A digital-to-analog converter is a device that converts a discrete signal in the form of a binary digital quantity into an analog quantity based on a standard quantity (or reference quantity), referred to as a DAC or D/A converter. Electronic Basics #10: Digital to Analog Converter (DAC) Catalog Ⅰ Composition and characteristics

Explanation:

William brought some data into his Tableau Book, but the data had some null values and incorrect column headers. What did William have to do to clean up the data

Answers

William  had to manually edit the data if he wants to remove the null values and incorrect column headers.

What is data editing?

Data editing is known to be a term that connote the act of making changes, reviewing or adjustment  some survey data.

Note that by editing one can remove want one do not want from a group of data and as such,  William  had to manually edit the data if he wants to remove the null values and incorrect column headers.

Learn more about data from

https://brainly.com/question/26711803

#SPJ1

A user generates printouts consisting of several pages of seemingly random characters every time he prints to a network printer. The printer seems to work fine for all other users. What is the most likely cause of the problem

Answers

Answer:

The printer driver is incorrectly installed by the user.

Type the correct answer in the box. Spell all words correctly.////////////////////////////////////////////////////////
////////////////////////////////////////////////////////In a manufacturing system, a sensor determines whether a furnace is at an appropriate temperature. The sensor’s information governs the flow of fuel to the furnace. Identify the elements of this manufacturing system.////////////////////////////////////////////////////////
This particular manufacturing system has an additional fourth element known as
.

Answers

Answer:

Where are the words to put in

Explanation:

Answer:

mm I dont understand where do the words go

Explanation:

85 points hurry pls
Which of the following statements are true regarding barriers to communication? Select 3 options.

The barriers to communication make it difficult to build trust and rapport on a cross-cultural team.
The barriers to communication make it difficult to build trust and rapport on a cross-cultural team.

The only choice for reducing language barriers on a multilingual team is to have a person translate all interactions.
The only choice for reducing language barriers on a multilingual team is to have a person translate all interactions.

Even when language is not a barrier to communication, issues can arise because of differing communication styles.
Even when language is not a barrier to communication, issues can arise because of differing communication styles.

To reduce barriers caused by speaking different languages, effective teams should only choose team members that speak a common language.
To reduce barriers caused by speaking different languages, effective teams should only choose team members that speak a common language.

Barriers to communication can be best addressed with an open mind and positive attitude.
Barriers to communication can be best addressed with an open mind and positive attitude.

Answers

The statements which are true regarding barriers to communication are: A, C, and D.

What are barriers to communication?

Barriers to communication can be defined as form of obstacle or hindrance that typcically affects the swift and easy communication of an information between two or more parties.

This ultimately implies that, barriers to communication are impediments to effective communication between two or more parties and these include the following:

Language differenceCommunication stylesCultural difference

Read more on communication here: brainly.com/question/26152499

#SPJ1

Answer:

-The barriers to communication make it difficult to build trust and rapport on a cross-cultural team.

-Barriers to communication can be best addressed with an open mind and positive attitude.

-Even when language is not a barrier to communication, issues can arise because of differing communication styles.

Explanation:

sorry for adding no letters, the order is different for everyone!

Because the clients and the server perform different functions and can run two different operating systems, there is an arrangement of client/server architecture known as ____.

Answers

Answer:

✓ two-tier architecture

Explanation:

Because the clients and the server perform different functions and can run two different operating systems, there is an arrangement of client/server architecture known as ____.

✓ two-tier architecture

Select the correct term to complete the sentence.

A is an application with browser functionality embedded within an application written for a specific platform.


A is an application run through a browser enabling cross-platform access.


A is an application written for a specific device and operating system.

Answers

Answer:

A program that searches a database for specific words and returns a list of webpages or documents in which the search term was found. ... A _____ is an application that runs in a

Explanation:

First blank: Hybrid App

Second Blank: Web App

Third blank: Native App

PROOF:

7.6.8: What's in a Name? code hs help

Answers

The exercise here is to write a code that prints the result "What's in a Name?". See the soluton for this below.

What is the code for the above exercise?

The CodeHS that states: "What 's in a name?" is:

print('Hello,', input('What's in a name? '))

CodeHS refers to an online platform for learning that is interactive. It offes turorials on general computer science knowledge as wella s programming.

Learn more about CodeHS at

https://brainly.com/question/15599262

#SPJ1

What are three coding languages that are used to build websites?

Answers

Answer:

Python, Javascript, and Java

Explanation:

These are the main coding languages used for building most websites.

Soft skills high module 7

Answers

Yes this is the fight answer I hope it helps

The page .Product contains data retrieved from an external system of record using a data page. How do you ensure .Product always contains the most current data from the data page

Answers

Answer:

Select refer to a data page on .Product

Explanation:

Q:

The page .Product contains data retrieved from an external system of record using a data p…

A. Select Refer to a data page on .Product.

B. Select Copy data from a data page on .Product...

A:

A

this ingredient is often used as decoration for both hot and cold dessert​

Answers

Answer: cream

Explanation: Cream This ingredient is often used as a decoration or accompaniment for both cold and hot desserts, but may also be used as one of the recipe ingredients.

Please mark as brainliest

pivotetable are based on?

Answers

A pivot table is known to be based on the summary of your data and it is one that  report on different topics or trends.

What is pivot table?

This is known to be a kind of table that shows the summary of one's data, as they are said to be packaged in a chart.

Note that, A pivot table is known to be based on the summary of your data and it is one that  report on different topics or trends.

Learn more about pivot table from

https://brainly.com/question/15214258

#SPJ1

Find the 66th term of the arithmetic sequence
25,10,−5

Answers

Answer:

the answer is 33825

Explanation:

Answer:

-950

Step-by-step explanation:

Arithmetic sequence=a+(n-1)d

a=first number

n=nth term

d=difference

a=25

n=66

d=-15

So let's solve

25+(66-1)(-15)

25+(65)(-15)

25-975

-950

So the 66th terms is -950

What is the first step you should take if unable to make bill payments on time?

Answers

Answer:

"talk to your landlord, creditors or bank about your financial situation to see if they can offer any leniency or a payment plan". just ask for extra time

Explanation:

difference between communication service and communication media​

Answers

Explanation:

Communication Devices :

A communication device is a hardware component that enables a computer to send (transmit) and receive data, instructions, and information to and from one or more computers or mobile devices. A widely used communication device is a modem.

2. communication Media :

Communication media means of sending or receiving information or data. And in telecommunication, Communication media refers to the channel or tool or device through which data will be transmitted. Different communication media’s used for sending the data or information from one computer or terminal to another inside some kind of network.
Communication Device

Communication service means the act of communicating using any system or the act of transmission and receipt of information between two or more points. Each point must be capable of both transmitting and receiving information if communication is to occur.


Media:

Communication media refer to the ways, means or channels of transmitting message from sender to the receiver. Communication media indicate the use of verbal or non-verbal language in the process of communication.

Which part of the nist cybersecurity frameworks defines the activities needed to attain the different cybersecurity results?.

Answers

The part of the NIST framework that defines the activities to attain different cybersecurity results is the Framework core.

What is cybersecurity?

The term 'cybersecurity' makes reference to the strategies aimed at protecting information on the deep web.

Cybersecurity techniques are fundamental to protect sensitive data such as passwords from hackers.

In conclusion, the part of the NIST framework that defines the activities to attain different cybersecurity results is the Framework core.

Learn more  about cybersecurity here:

https://brainly.com/question/17579545

#SPJ1

What term refers to a hacker that uses
technology to announce or deliver a social,
ideological, religious. or political message?

Answers

Answer:

Hacktivist

Explanation:

A hacktivist is a hacker who utilizes technology to announce a social, ideological, religious, or political message. In general, most hacktivism involves website defacement or denialof- service attacks.

Companies learn a lot about customers because they leave clues in all of the following ways EXCEPT: Group of answer choices actions taken when navigating a company website. how they write code. searches with search engines. making comments about the company on social media.

Answers

Companies learn a lot about customers because they leave clues in all of the ways above except how they write code.

What is learning  about customers?

The act of learning  about customers  is known to be the act or the process whereby firm studies and know more about their potential customers through survey, feedback, etc.

Note that Companies learn a lot about customers because they leave clues in all of the ways  except how they write code as they do not need them for that.

Learn more about customers from

https://brainly.com/question/380037

#SPJ1

What are the qualities of strong leaders? Check all that apply. They inspire others. 1)They are easily influenced by others. 2)They are outstanding role models. 3)They have a strong sense of purpose. 4)They lack self-confidence.

Answers

Answer: 2 and 3
Explanation:

I would pick 2 and 3 based on process of elimination

What technology does kroger’s edge technology and amazon’s just walk out technology leverage?.

Answers

Answer:

What technology does kroger’s edge technology and amazon’s just walk out technology leverage?.

The three main objectives of information security are.

Answers

Answer:

confidentiality, integrity, availability

Explanation:

Confidentiality: Data and information assets must be confined to people who have authorized access and not disclosed to others

Integrity: Keeping the data intact, complete and accurate, and IT systems operational

Availability: An objective indicating that information or system is at disposal of authorized users when needed.

Often, a single source does not contain the data needed to draw a conclusion. It may be necessary to combine data from a variety of sources to formulate a conclusion. How could you do this in this situation of measuring pollution on a particular river?

Answers

To measure the pollution of a particular river, one must take the sample of the river and take the sample of pure water, then draw the conclusion, it will tell the amount of pollution in the river water.

What is pollution?

Pollution is the mixing of unwanted or harmful things in any substance or compound.

Water pollution is the mixing of toxics and chemicals in water.

Thus, to measure the pollution of a particular river, one must take the sample of the river and take the sample of pure water, then draw the conclusion, it will tell the amount of pollution in the river water.

Learn more about pollution

https://brainly.com/question/23857736

#SPJ1

Do you think that smart televisions are going to replace media players?

Answers

Answer:

yes because smart television give more information

Which package is required for shadow passwords to be enabled?.

Answers

Answer:

For shadow passwords the shadow-utils package to be enabled

Explanation:

The shadow-utils package includes the necessary programs forconverting UNIX password files to the shadow password format, plusprograms for managing user and group accounts. The pwconv commandconverts passwords to the shadow password format. The pwunconv commandunconverts shadow passwords and generates a passwd file (a standardUNIX password file). The pwck command checks the integrity of passwordand shadow files. The lastlog command prints out the last login timesfor all users. The useradd, userdel, and usermod commands are used formanaging user accounts. The groupadd, groupdel, and groupmod commandsare used for managing group accounts.

For shadow passwords, the shadow-utils package is to be enabled.

What are shadow passwords?

On Linux and Unix, shadow accounts improve login security. Normally, passwords are stored in a publicly accessible table in an encryption key.

The hashed login encoding for a Linux user is stored in the bottommost along with extra information pertaining to the user password.

The programs required to convert UNIX credential files to the shadow login format, as well as applications for managing user and band accounts, are all included in the ghost package. Passwords are converted to the shadow password format using the tool.

Hence "The shadow-utils package must be enabled for shadow passwords".

To learn more about shadow passwords,

https://brainly.com/question/13034007

#SPJ12

Other Questions
Yo! Can someone help me with this? Each of the three branches of the federal government has distinctive duties. This term describes the duties of the Presidency.LegislativeExecutiveJudicialAdministrative Can you please help me answer this question!! how extinction threatens Earth natural capital. I WILL GIVE BRAINLYIST ASAP 5 reasons for irrigation in agriculture In a bag, there are 5 yellow marbles and 3 green marbles.A marble is randomly selected from the bag and it turns out to be yellow.The marble is not put back into the bag. Which of the following events are affected by this? Select all correct options.-The chance of selecting a blue marble next time.-The chance of selecting a yellow marble next time.-The chance of selecting a green marble next time.-The chance of selecting a black marble next time. Match each step in the process with the sentence that best describes it. find the slope of the line thatpasses through these two points: (-3, 4): (2,-1) What are the zeros of this function? I have social phobia and it is hard to talk to people I really want to talk to them but I'm scared to talk, what should I do? [tex] \textbf{Can someone help me with this question ?} [/tex][tex] \texttt{Note : you have to use vector method,} [/tex] [tex] \texttt{no use determinants, or Area of Triangle = 0} [/tex][tex] \textsf{If points with given position vectors are} [/tex] [tex] \textsf{collinear then find the value of " a "} [/tex][tex] \qquad \sf{\vec{A} = 60 \hat{i} + 3\hat{j} } [/tex][tex] \qquad \sf{\vec{B} = 40 \hat{i} - 8\hat{j} } [/tex][tex] \qquad \sf{\vec{C} = a\hat{i} - 52\hat{j} } [/tex] Every day Jack runs 3 km a) Find out how far he runs in 4 weeks An ellipse has foci F1(5, 5) aF2(0, 7) and the point (0, 5) is on the ellipse. Identify the constant sum for the ellipse. What is the mass percent of a sugar solution when 489 grams of sugar is combined with 877 grams of water? Beyonc knowles early popularity and fame came through her membership in what music group?. Andrew chooses three different numbers.- Exactly one of the numbers is a square number.The other two numbers are factors of 18.The sum of the three numbers is 36.d the three numbers chosen by Andrew.ite the numbers in ascending order. How might the atmosphere affect the biosphere? Select the button that answers the question. A Waves carve caves in a cliff. a B. Warm ocean water forms storms. C. Wind causes a wildfire to grow larger. D. A volcanic eruption creates new land. What did you include in your response? check all that apply. Similarities between the poems differences between the poems connections to the painting within the poems I'm kinda terrible at math and I'm running out of time to complete this you might think its easy but its no for me.