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

How do you think the world was created?
What is the difference between preterite and imperfect and the past progressive and present progressive?
Which statement illustrates the distributive property? Please help
What is a major city in Alaska that starts with F
Water on each side of a divide flows in...
Water on each side of a divide flows in...
How do you tell if an equation is linear or not????
What is a major city in Alaska that starts with F
Pyrenees mountains border Spain and this European country starts with F
What is a major city in Alaska that starts with F