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

Which part of the atom cannot have its location accurately determined
A diet deficient in calcium can lead to which condition? a. anemia b. osteopenia c. night blindness d. atherosclerosis
Solve the equation step by step 1-2x+5=4x-3
Why was the a plan for the reconstruction of the south needed?
Questions 1–9: The sentences below contain adjectives and pronouns that are spelled alike. This exercise will help you determine if you know the difference betw
What’s the answer ??????????????????????????????????
what is the solution to the system of equations graphed below? Y=-2x-3 Y=3x+2 A.(0,-3) B.(0,2) C.(-1,1) D.(-1,-1)
What experiments did Albert Einstein do
Which career professionals typically have some college experience but no degree?
solve the follow 3(2z-4)=60