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

how do i use 1% or 10% to find 93% of 149?
A sentence style employed by Hemingway that uses many conjunctions is called a. repetition. b. polysyndeton. c. complex. d. succinct.
3 parts of the us constitution are?
you have 7 5/8 feet of yarn to make a bracelet.You only use 4 1/8 feet for the bracelet.How much yarn is left over?
Hawaii is a _________ island a. Micronesian b. Melanesian c. Polynesian d. Australian
Outlines use________to identify various levels of information a. Numbers c. Letters b. Roman Numerals d. All of these
When a number is tripled and 8 is subtracted from the result, the answer is 16. What is the number?
The main reason for the passage of the National Security Act was to
The _____ Program was designed to land a man on the moon.
Desert locusts are devastating to agriculture because __________. a. they eat insects that play important roles in maintaining crop 6 b. small swarms can eat th