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 sentence best describes the effect of plot complications? A. They add suspense by introducing more obstacles for the protagonist. B. They reveal how the
The remains of sea organisms are converted to which type of fossil fuel? oil uranium coal yellowcake
Why did towns and trade grow during the Middle Ages?
Please someone help me with this question
Which option is true about Chinese names? O A Chinese last name usually has three or more characters. O A Chinese first name can only have one character. O A Ch
All integers are natural numbers . true or false?​
Plss help me!! Il do anything!! Pls follow the instructions on the paper
Use the algebra tiles to help you solve the equation 3x-2=10.
Anyone mind helping!
What is the mistake in the question below? Identify the error and then re-write the sentence correctly. There is only one mistake. Los chicos son chistoso. (The