ghjklytfdvnfc4544 ghjklytfdvnfc4544
  • 24-02-2020
  • Computers and Technology
contestada

Enter an input statement using the input function at the shell prompt. When the prompt asks you for input, enter a number. Then, attempt to add 1 to that number, observe the results, and explain what happened.

Respuesta :

letmeanswer
letmeanswer letmeanswer
  • 02-03-2020

Answer:

Explanation:

An input statement using the input function at the shell prompt is as follows:

If a prompt asks for a input, a number is to be added

num = input ('Number: ')

num = num + 1

print(num)

Explanation of results: This gives error at line num= num + 1 as cannot convert int object to str implicitly

Answer Link

Otras preguntas

In the figure, a∥e , m∥n , and m∠4 = 112°. What is the m∠5 ?
Which of the following best illustrates how a conjunction can correct a run-on sentence. a. the game is about to be called on account of rain, and if this happ
Which property of physical changes explains why matter is conserved in a physical change? The arrangements of particles do not change, and the bonds between at
The Prologue to Romeo and Juliet reveals all of the following except: Question 1 options: A. Romeo and Juliet end their lives B. Romeo and Juliet are ill
What role did King Harold Godwinson play during the Norman conquest of England?
The Romans used the knowledge of concrete that they gained from the Mesopotamians in order to help build their aqueducts and other structures. True False
what is the main theme of the excerpt
?? Please help me?????
The formula for the area of a triangle is A=1/2bh where B is the base and H is the height. What is the area of the triangle A)99ft^2 B)162ft^2 C)198ft^2 D)324f
Which of the following is NOT a characteristic of Roman sculpture?