richardcruzzz39
richardcruzzz39 richardcruzzz39
  • 10-12-2020
  • Computers and Technology
contestada

11. Look at this code: myVar
int(input("Give input: "))
What happens if the human enters "Salad"?

11 Look at this code myVar intinputGive input What happens if the human enters Salad class=

Respuesta :

goodLizard
goodLizard goodLizard
  • 10-12-2020

Answer:

ValueError will occur.

Explanation:

Since 'Salad' is a string containing letters, we cannot use the int() function to turn the string into an integer.

Hope this helps :)

Answer Link

Otras preguntas

Read this paragraph. School officials are thrilled with the renovations and expansion of King High School. Staff and students praise the improved lighting, spac
What are the benefits of using the engineering design process
Someone please help!
6. DE with endpoints D(-3, -4) and E(4, 2) under the translation (x, y) + (x + 1, y + 3)
6 cm 63 cm the area of the rectangle
Which region of the United States did the Eastern Woodland tribes live in? the Southwest the Mid-Atlantic the Great Plains the Northwest
Four relatives are going to give you money for your birthday. The amount each relative gives you is equally likely to be any number between $0 and $200. The cha
How do you solve this 13c<-169
Lipid is one of the major classes of biomolecules needed by the body. The body breaks down the lipids that we consume to create and . .
A sales person makes a base salary of $500 per week plus 14% commission on sales. (a) Write a linear function to model the sales person's weekly salary S(x) for