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

In order to maintain life, organisms must produce, modify, transport, and exchange materials. What is this process called?
what is the slope of the line represented y= 5x -7​
Which would result in higher food production at a lower cost? Check all that apply A.cows that are able to fight off disease B.rice that has added provitamin A
La Semana Santa se celebra después de Pascua. cierto falso 2. Las personas tienen días libres durante la Semana Santa. cierto falso 3. Todas las personas asiste
Which property was used to simplify the expression? 3c+9+4c=3c+4c+9 distributive property commutative property associative property inverse property
This is the title of a person who has been elected for a 6-year term to one of the houses of the U.S. Congress
What political position did Wouter Van Twiller hold?
Francis ran 2and4/5 minkes in 7/12 of an hour. How many miles can he run in an hour
Which section of the article BEST explains why shoe companies create food-themed sneakers? (A) "Cooking Up A Tasty Sneaker" (B) "America Runs On Dunkin' In The
Which of the following is labeled with the number 1 above the map