![sssssaaaaaddddd5712](/avatars/1254.jpg)
sssssaaaaaddddd5712
16.11.2020 •
Computers and Technology
What will be the output of the following lines of code and the user’s response?
>>> answer = input("What does your dog weigh? ")
What do you weigh? 85.7
>>> weight = int(answer)
>>> print("The weight is" , weight)
An error occurs.
The weight is 85.7
The weight is 85
The weight is 86
Solved
Show answers
More tips
- F Family and Home How to Choose the Perfect Air Conditioner for Your Life...
- H Health and Medicine Discover the Hidden Principles and Real Results of the Japanese Diet...
- H Health and Medicine Understanding Pregnancy Tests: What You Need to Know?...
- H Health and Medicine What Makes a Man a Man?...
- C Computers and Internet How to Get Rid of Spam in ICQ?...
- A Art and Culture Who Said The Less We Love a Woman, the More She Likes Us ?...
- F Family and Home How to Get Rid of Your Neighbors?...
- S Society and Politics How Could Nobody Know About the Dead Mountaineers?...
- H Health and Medicine How to Cure Adenoids?...
- H Health and Medicine Why Wearing a Back Brace Can Be Beneficial During Back Strain?...
Answers on questions: Computers and Technology
- C Computers and Technology 25 POINTS. Which three features are related to the functions of a continuous rotation servo motor? A. The command signal sets the direction and speed of rotation. B. It can change...
- C Computers and Technology Next, Adnan decides to recreate the structure on the right side of the bridge illustration, which is indicated by the arrow. He thinks the best way to do this is to add shapes to...
- C Computers and Technology What are some intellectual resources and material resources used to iPod? Also, please watch this video if you are available so you can get the answers fast....
- E English How paul fisher changes throughout the text....
- E English Identify the type of verbal and its function in the following sentence. Starving, the wolf left the pack in the middle of the night....
- B Biology Although most changes in Earth s climate are caused by natural factors, scientists have observed changes that indicate human activity plays a role too. True False...
- M Mathematics A book store delivered school’s order of y textbooks in b boxes, equal number of books in each. How many books were there in each box?...
- M Mathematics P and q are complex numbers such that |p|=7√2 and |p+q|=12√3 . On what interval must |q| fall on? A [7√6/24,∞) B [12√3−7√2,∞) C [12√3+7√2,∞) D [4√6/7,∞)...
- E English Activity Question 1 A factory has to transport raw materials to a project site. The total weight of the raw material will not be less than 1,500 tons. The factory manager plans...
- C Chemistry Hydrazine, N2H4 , reacts with oxygen to form nitrogen gas and water. N2H4(aq)+O2(g)⟶N2(g)+2H2O(l) If 2.15 g of N2H4 reacts with excess oxygen and produces 0.450 L of N2 , at 295...
Ответ:
An error occurs.
Explanation:
You cannot pass a string representation of a float ("85.7") into an int conversion, you'd have to convert it into a float first.
So weight = int(float(answer)) would work.
Ответ:
find your username then click on it then click on account
Explanation: