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

Exercise 21.2 1. For each graph with the given intercept and passing through the given poi write down the equation of the corresponding function. (i) Intercept
I need help with this​
Calculate the mean, median, and mode of the following set of data. Round to the nearest tenth. 12,7,12,9,2,15,6,6,6,1,11
positive factors of bangladesh trading with united states
giving brainliest 2 variable table
How many gallons each of 15% alcohol and 10% alcohol should be mixed to obtain 5 gal of 13% alcohol?
You’ve won $1 million but aren’t receiving it all today. Rather, you get $100,000 today, then $100,000 every year for the next nine years. Assume that you could
Which is not a helpful way to track sources for a research paper?
Argumenta sobre las influencias culturales en las expresiones artísticas nacionales?
A carpenter can make at most 20 tables and at most 30 chairs per day. Each table requires 3 hours of labor and each chair 2 hours of labor. The maximum total ho