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

Astronomers use the _______ of stars to determine how hot they are and their _______ to estimate how far away they are.
A sequence is harmonic if the reciprocal of the terms of the sequence form an arithmetic sequence.
Find the slope of the line that passes through A(0, 6) and B(2, 2)
What BEST describes how the topic of friendship is treated differently in Passage 1 and Passage 2? Passage 1 alms to warn the reader about a certain type of fri
richard works at a retail shop. he makes $9 an hour, plus $2 for each membership he sells. letimage represent the number of memberships sold andimage represent
The period T (in seconds) of a pendulum is given by T = 2√(L/32), where L stands for the length (in feet) of the pendulum. If n= 3.14, and the period is 9.42 se
What did ancient civilizations use to connect markets in different cities?
Sandy spends 4 hours at the beach every 6 days. How many hours will she spend at the beach in 7 days?I need an answer FAST!!​
The diameter of a baketball i 18 inche. A tandard baketball ha the circumference of 30 inche
What are the chemical symbols for the elements: gold, silver, and tin respectively?.