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 write 1.21 as fraction, when .21 is continuing?
Type the equation that shows the pattern among this set of ordered pairs (0,2) (1,-1) (2,-4) (3,-7)
how do you write number 27 ton in figures ?
A gymnastics foam diving pit has a width, length and depth of 96 inches. What is the total volume of the gymnastics diving pit written in scientific notation? (
what decimal is between 1.5 and 1.7
A sentence with the word deed
Read the statement, and identify the expressions that are equivalent. the sum of a number times 3 and 15 A.15 + 3n B. (n + 15) × 3 C.15 + 3 × n
What did Karl Marx believe would happen to capitalism?
put these in order from least to greatest kilometer,millimeter,inches,yards,centimeter,miles,meter
A gymnastics foam diving pit has a width, length and depth of 96 inches. What is the total volume of the gymnastics diving pit written in scientific notation? (