1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dolphi86 [110]
3 years ago
8

I need help with Python. The first image is the code and the 2nd is the output.

Computers and Technology
1 answer:
Gekata [30.6K]3 years ago
4 0
The issue arises because the string you are trying to print is not a string, rather a float value. Item1, item2 and item3 are strong values (if you type some alphabets in it and not just numbers), but itemonecost, itemtwocost, and itemthreecost are explicitly type casted to float. In line 22, 23, and 24 you’re trying to print a float, by adding it with the string. One cannot add numbers to string. Rather you can type cast the itemcost to string while printing.

Add str(itemonecost) instead of itemonecost in print statement. Do this for other float variables too.

However do note that there are multiple ways to correct this issue, and I’ve just pointed one out.
You might be interested in
Can some one help me with this please
levacccp [35]

Answer:what is it about

Explanation:

5 0
2 years ago
State differences between title bar and menu bar​
jeyben [28]

Answer:

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

Explanation:

                              "Title bar"

A title bar is a small strip that extends across the top of a window.It display the title of the window and typically include the close minimize and maximize button.In macros these buttons are on the left side of the title bar while in windows they are on the right.The title bar is a horizontal bar located at the top of a window in a GUI.It displays the title of the software name of the current.

                                   "Menu bar"

A menu bar is a graphical control elements which contains drop down menu.The menu bar purpose is to supply a common housing for window or application specific menu which provide access to such function as opening file interaction with an application or displaying help documentation or manuals.

7 0
2 years ago
, how do you make this user <br> XtraCrispyIzzy<br> 12 characters or less for microsoft?
xxTIMURxx [149]

Answer:

Maybe take away the 'xtra'

8 0
2 years ago
Translate I don't sing into Spanish​
zhenek [66]

Answer:

i don't sing = no canto

Explanation:

3 0
2 years ago
Read 2 more answers
Which of the following is the most abstract?
marysya [2.9K]

D. The word "food" is the most abstract because it is the least specific and does not specify what food it is exactly.

Hope this helps!! :)

4 0
3 years ago
Read 2 more answers
Other questions:
  • To use the Save As command, click on the __________tab to open the backstage view.
    13·1 answer
  • The expressionvecCont.empty() empties the vector container of allelements.
    13·1 answer
  • Wich is the last step in conducting a URL search
    14·2 answers
  • A recursive method that computes the number of groups of k out of n things has the precondition that ______. n is a positive num
    12·1 answer
  • which of the following devices and and receive information from other device? a parallel port B serial port C video port d both
    8·1 answer
  • Which computer peripheral is used when you would like to use a DVD or CD?
    12·2 answers
  • Running away from home
    11·2 answers
  • How many cubic millimeters are present in 0.0923 m3?​
    14·1 answer
  • In what ways is the human brain like a computer? In what ways is it different?
    14·2 answers
  • What Microsoft feature enables you to represent text as colorful visuals
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!