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

Find the area of the shaded portion in the equilateral triangle with sides 6. (assuming the central point of each arc is its corresponding vertex)
mark as brainlist asap plz i need the answer asap
Explain why disversity in organisms is important and discuss what might happen if there is a lack of diversity in organisms
Rectangular fish aquarium with height 15 inches length 20 inches and width 20 inches
please help me with this page.
Please select the word from the list that best fits the definition It is possible that baseball was created by Italian citizens. A absolute B qualified
Please please help me !! Will give BRAINLIEST!! What is the quadratic regression equation that fits these data?
help please !!!!!!!!!!!!!!!!!!!!!
What does mrs. dubose say about the children's mother? how does jem feel about this?
Willamina is interested in helping her client get a clearer understanding of his motives and actions. she is most likely to be a(n) ________ therapist.