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 does the hundred flower campaign connect to the great leap forward?
Why might knowledge of the gene and protein sequences of a species be useful in classifying that species? (4 points)
Charlotte had been learning about volcanoes and how they form. She wanted to tell her younger sister about it. Describe the formation and structure of a cinder
PLEASE HELP FAST ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compare the Three General patterns of population dispersion
Homeostasis is the balance between your internal and external environments. We learned three major factors that your body helps to regulate. Match each descript
An emergency care facility has been notified that a patient suffering severe injuries from a motorcycle accident will be arriving within minutes. When the patie
Factorise the following:a² - 144​
Help please......................
Help, it's due today!!