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

Will give Brainliest for the best correct answer... Why is it difficult for historians to study early human societies? possible answers: A:Written records from
!!! WILL GIVE BRAINLIEST !! PLS ANSWER !!!
Will give 30 points and brainliest
A rectangle is 12 feet long and 5 feet wide. If the length of the rectangle is increased by 25% and the width is decreased by 20%, what is the change in the are
What is the maximum magnification of most classroom compound light microscopes? 100x? 500x? 1000x? 5000x?
Please help, it would be much appreciated. Explain how the process below works.
(1 point) 1. The height (in feet) and volume of usable lumber (in cubic feet) of 32 cherry trees are measured by a researcher. The goal is to determine if volum
Every 30 seconds you get $5 Every 252000.288 seconds you get $100k how long will it take to get 100,000 if you get $5 every 30 seconds
True or false The maximum number of electrons in the second energy level of an atom is 4.
Which element is most likely to have an oxidation number +2