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

Greenhouse gases absorb radiation from the
Twins may look and act different from each other because?
ozone is dangerous to human health only when it is found in the what?
Many English writers and thinkers in the eighteenth century felt that the English language should be standardized. Which social change was most closely related
How did the development of the hydrogen bomb affect the arms race?
Prior to 1848, monumental canvasses were reserved for _________________.
Glass windows allow light in, but trap the heat inside. This describes _____. a greenhouse effect convection global warming conduction
When the witch stops her sledge, what does Edmund hope is the reason
one simalartiy between the sepoy rebellion in india and the boxer rebelion in china was that both were
Read the excerpt from "Harrison Bergeron." “You been crying?” he said to Hazel. “Yup,” she said. “What about?” he said. “I forget,” she said. “Something real