Write the code in python to input a number and print the square root. Use the absolute value function to make sure that if the user enters a negative number, the program does not crash.

Answers

Answer 1

Answer:

Code in Python :-

num = float(input("Enter any number : "))

ab = abs(num)

sqrt = float(ab ** 0.5)

print(sqrt)

Answer 2

In python:

print(abs(float(input("Enter a number: ")))**0.5)


Related Questions

does anyone knows how I can remove those people at the bottom In google photos it’s not showing up in google contact help

Answers

Maybe refresh all your Safari apps

what does memory Stores?​

Answers

Memory is the process of storing and recalling information that was previously acquired. Memory occurs through three fundamental stages: encoding, storage, and retrieval. Storing refers to the process of placing newly acquired information into memory, which is modified in the brain for easier storage.

Pls help... : Slide layouts can be changed by _____.


selecting new layout from the Tools menu

selecting new layout from the Edit menu

selecting a new layout from the Task pane

selecting a new layout from the Slide pane

Answers

Answer:

Selecting a new layout from the task pane

Explanation:

selecting a new layout from the Task pane

kekw

what generally occurs in an economy as specialization increases

Answers

It's very obvi that the answer is when the economic impact of specialization can be seen in the propensity for people to choose different missions that are more "in line" with their interests, talents or skills, chances and education

Is this statement true or false?



Humor should never be used in a presentation as it will distract your audience.


true

false

Answers

This answer could be either, but personally false. Humor drives attention into your work (if the humor isn’t about it then yes it would drive it far off) but it makes people focus and listen to your presentation so they would answer your jokes. Hope this helped!

Answer:

false

Explanation:

you are welcome ;)

4. are the outputs of a process, team or organization in the form of documents that enable effective actions. *

Answers

Answer:

The answer is "Knowledge Presentation ".

Explanation:

There are several descriptions of an idea of knowledge or learning. It may have a lecture segment about teaching or focusing on new team members.  

One of your points is education. Education, the entire e-learning is all about knowledge transfer.  you could be a trainer or a teacher, once you're talking about knowledge every moment you present this.  Adding the visual symbol with wisdom, which represents an idea of wisdom, allows the slides more attractive and more memorialized.

The deliverables of such a procedure or the organization throughout the manner of papers that facilitate better responses are referred to as Knowledge presentations.

Knowledge, as well as skills training, is mentioned several times in demonstrations. You should also include a segment in your presentation regarding educating and transitioning members of the department.Including a visual symbol expressing understanding or a notion of understanding in your presentations may contribute to making them more interesting and memorable.

Thus the above approach is appropriate.

Learn more:

https://brainly.com/question/17871896

Which program will have the output shown below?

5
6
7

>>> for count in range(4, 7):
print(count)

>>> for count in range((4, 8):
print(count)

>>> for count in range(5,7):
print(count)

>>> for count in range(5, 8):
print(count)

Answers

for count in range(5, 8):

   print(count)

This will produce.

5

6

7

I hope this helps!

Answer:

>>> for count in range(5, 8):

print(count)

Explanation: got it right on edgen

Write a calculator program that will allow only addition, subtraction, multiplication & division. Have the
user enter two numbers, and choose the operation. Use if, elif statements to do the right operation based
on user input.

Answers

num1 = float(input("Enter the first number: "))

num2 = float(input("Enter the second number: "))

operation = input("Which operation are you performing? (a/s/m/d) ")

if operation == "a":

   print("{} + {} = {}".format(num1, num2, num1+num2))

elif operation == "s":

   print("{} - {} = {}".format(num1, num2, num1-num2))

elif operation == "m":

   print("{} * {} = {}".format(num1, num2, num1*num2))

elif operation == "d":

   print("{} / {} = {}".format(num1, num2, num1/num2))

I hope this helps!

Question #1
Multiple Select
Which collections can contain duplicate items?
deque
O dataset
O list
tuple
organizer

Answers

Answer:

Deque

Tuple

List

(Did it on Edge)

In this exercise we have to use python knowledge to identify which ones can be used with duplicate terms, like this;

it is the List

What is a list in Python?

A list in Python is an ordered sequence or collection of values. Each value in the list is identified by an index. The values ​​that form a list are called elements or items.

See more about list in python at brainly.com/question/26104476

Which of the following are valid variable names? Select 2 options.
A. Cost$4
B. 4thNumber
C. Fourth_number
D. Num4
E. $4cost
Please answer asap

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct options to this question are C and D:

Fourth_numberNum4

Because these are the correct and valid variable names.

Other options are not correct because these variables names either start with a number or contains special character such as $ sign.

The invalid variables are A, B, and E while the valid variable declare are options C and D.

DECIPHER AND SOLVE THIS

SCC:R
D
YJOTE VP=GPIMFRT

Answers

Um.... alrighty then

* 8) Embedded operating systems are specialized software meant only to manage the
resources of the specific device for which they were written, True or false?
True
False

Answers

Answer:

True

Explanation:

Embedded operating systems are operating systems which supports hardware which is not a computer and allows the hardware to perform its task.

An example of a device with an embedded operating system is an SD card. The operating system on the card allows the card to be readable by the computer which its is plugged to.

Other examples of hardware with embedded systems are traffic lights, digital televisions, ATMs, point of sale (POS) and digital cameras.

6. An example of a private network is.
•internet
•wi-fi
•modem
•router

Answers

Answer:

a. internet

because all the others are public

Answer:

the answer is A

Explanation: hope this helps

Betty is developing a machine learning algorithm that looks at vast amount of data collected over 100 years and checks for relationships between humidity, temperature, and rainfall. what form of machine learning is she developing?

a. regression
b. association
c. big data
d. classification
e. clustering

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

Betty is developing a machine learning algorithm that looks at a vast amount of data that is collected over 100 years, and She also wants to check the relationship among variables such as humidity, temperature, and rainfall in the given data.

So, the correct answer to this question is b. She is developing an association machine learning algorithm.

Because the association tells the relationship between variables. She used the association to find the relationship among variables such as humidity, temperature,  and rainfall.

While the other options are not correct because:

Regression is used to find out the cause and effect relationship between dependent and independent variables. Big data is the biggest field of data analysis, so this option does not best suit this context. Classification is used to classify data, or organizing data into their related group. While clustering is the task of dividing the population into a number of groups such that populations in the same groups are more similar to other populations in the same group than those in other groups. so these are all incorrect options to this question except the "b" option i.e association.

Why am I doing this investigation?​

Answers

Answer:

what investigation......

Answer:

what? which one.. ??sounds interesing

Which option helps you choose the design of a slide in a presentation?

Answers

Answer:

Wut options??

Explanation:

what is word processing in excel

Answers

Answer:

Microsoft Excel and Microsoft word are the part of the MicrosoftOffice Package of productvity software.

Can someone help me with number 4 will award brainliest

Answers

Answer:

(Read Below)

Explanation:

System managers manage all efficiency tasks, but personally I think that the allocation of system resources is the most useful task the system manager performs. This is because if system resources weren't optimally managed, performance would drop significantly.  (Hope this helped! :))

the first answer is totally correct I stand by it

Witch icon allows you to see paragraph formatting feature

Answers

Show/hide in paragraph section on word, it’s the last one on the upper right.

3.4 lesson practice

Answers

Answer:

The answer is A. Second Half of the month.

Explanation:

If Im reffering right to the source. So If you doing Chapter 3 Comp. Science. Than this is right.

Answer:

A

Explanation:

What is a graphic unit

Answers

Answer:

If you mean a graphic processing unit:

A graphics processing unit is a specialized, electronic circuit designed to rapidly manipulate and alter memory to accelerate the creation of images in a frame buffer intended for output to a display device.

Hope this helps

Guitar players calling their guitar an "axe" in the company of their bandmates is an example of:
A. creating an acronym for simplicity.
B. a bromance relationship.
C. using slang in a community.
D. an instant-message chat.

Answers

Answer:

The answer is A

Explanation:

Jason found his father’s old phone . When he looked into the interior circuit of the phone, he found that the storage car was permanently fixed on the primary circuit board of the phone, what type of storage media is this?

Answers

It is a persistent drive

how do i know if someone s photo is fake are there any apps idk

lol​

Answers

Answer:

or you can just search the picture up and if you find it online then it's fake, or you can check Pinterest.

Which is the most popular language used in game programming?

A.binary
B. C++
C. CGI
D. Flash

Answers

Answer:

B C++

Explanation:

The two most common languages for game designers to learn are C++ and Java, although other languages are popular (such as C# for Unity). Another type of programming you may hear referred to is scripting, but that essentially comes down to a type of systems programming.

Answer:

b

Explanation:

i just know it

100 points! What categories would you need to access to create a full program where a sprite paints a square on the screen?
A.
Motion, Pen, Control, Sensing
B.
Events, Pen, Looks, Operators
C.
Events, Pen, Motion
D
Variables, Pen, Operators

Answers

Answer:

i think its A. but im not sure

Answer:

A

Explanation:

I took the test and this was right

what is the branching factor of the following tree?

Answers

Answer:

a is the branching factor

Answer:

B, 2 factor

Explanation:

Which statements are true about a database?


A database allows only numeric entries.



You cannot upload image files to a database.



You can enter data based on the defined data type.



You cannot leave a field empty.



A primary key uniquely identifies a record.

Answers

Answer:

You can enter data based on the defined data type.

A primary key uniquely identifies a record.

Explanation:

In a database, you can only enter data that matches the data type you have specified for that field. Therefore, you can enter text in fields with the text data type; numbers in fields with the number data type; or images in fields with the BLOb data type. You can have fields where data entry is optional. A primary key eliminates the chance of duplicate entries of the same record in a table.

Explain the process of creating a chart using chart wizard dialog box

Answers

Answer:

Open an Excel worksheet that has rows and columns of data. ...

Select the cell range containing the data to be charted. ...

Create the chart by clicking the Chart Wizard button on the standard toolbar.

The Chart Wizard starts at Step 1 by asking what type of chart to make (see screen shot ).

3.6 code practice (edhesive)

Answers

largest = int(input("Enter a number: "))

print("Largest: {}".format(largest))

i = 0

while i < 5:

   num = int(input("Enter a number: "))

   if num > largest:

       largest = num

   print("Largest: {}".format(largest))

   i += 1

I hope this helps!

The program illustrates the use of conditional statements and iterations

The complete program in Python is as follows, where comments are used to explain each line.

#This gets the first input from the user

userNum = int(input("Enter a number: "))

#This prints the first input as the largest

print("Largest:",userNum)

#This assigns to largest, the value of userNum

largest = userNum

#The following iteration is repeated 5 times

for i in range(5):

   #This gets another input from the user

   userNum = int(input("Enter a number: "))

   #This checks if current input is greater than the current largest input

   if userNum > largest:

       #If yes, this assigns to largest, the value of userNum

       largest = userNum

   #This prints the current largest input

   print("Largest:",largest)

In each iteration, the program prints the current largest input

See attachment for the sample run

Read more about iteration and conditions at:

https://brainly.com/question/18809878

Other Questions
please help!!!!!!!Based on the map above, what general SHAPE did the trade routes between the 13 colonies and England take? Which phrase describes a feature of a Mercator projection? TRIGONOMETRY (sin,cos,tan)Solve for x Does anyone else have a crush on kurapika :D In the very beginning of the play, King Duncan tells Ross, "What he hathlost, noble Macbeth hath won" (1, ii). Who is the "he" Duncan is referring toand what has Macbeth won? which colony region did not focus on any water based economics? deprimere, which means "to press down." How does the root help youdetermine the meaning of the word in economic terms?Un Which of these results in kinetic energy of an object? position motion mass volume Which of the fallowing would be a good that could be scientifically investigated Find the equation of a line that has a slope of -3/7 and goes through the point (49,-17) On January 1, a company agrees to pay $20,000 in three years. If the annual interest rate is 10%, determine how much cash the company can borrow with this agreement? (03.01) Match the two numbers with their least common multiple (LCM). Match Term Definition 8 and 4 A) 24 8 and 6 B) 8 8 and 10 c) 40 Previous Question Question 1 (Not Answered) Misleading advertising messages regarding fast food are often given by __________. A. politicians B. doctors C. athletes D. dentists In a paragraph of 125 words, describe the benefits of having an electronic rsum What is the scariest thing that has ever happened to you? Poland is a or an European country what is the y=mx+b for y=-2x+5 and 2y+4x=10 The difference between two same side interior angles of two parallel lines is 35 degrees. Find the measures of these two angles. Read this excerpt from Anne Frank Remembered. In a fury, he flung my identification card at my head and approached me almost in a bent-over position, as though bent with rage. "Aren't you ashamed that you are helping Jewish garbage?" he snarled at me. He then began to curse me, shouting terrible words and saying that I was a traitor, that I would get a terrible punishment. He kept on cursing uncontrollably. I remained standing as tall as I could, not reacting at all to his words. The more he shouted, the more nervous he became. He began to pace from wall to wall. Suddenly, he spun on his heel and said, "What shall I do with you?" Why does Miep react in this way? HELP PLZ i need help with this math side i just need b,c,d a =4x+2y=16