Computers and Technology

Write a program using python that prompts for an integer and prints the integer, but if something other than an integer is input, the program keeps asking for an integer. here is a sample session:

input an integer: abc

error: try again.

input an integer: 4a

error: try again.

input an integer: 2.5

error: try again.

input an integer: 123

the integer is: 123

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, sabrinarasull1pe6s61
Which of the following is a way the operating system prevents unknown or unauthorized users from accessing the system?
Answers: 2
image
Computers and Technology, 22.06.2019 10:00, banna01man
You need a reliable network for about twenty-five computers that will be distributed across a large building. it is important that the network be relatively cheap. which topology should you use?
Answers: 1
image
Computers and Technology, 22.06.2019 16:20, mandy9386
Consider the following statements, then select one of the answers below: the signal() function shown below registers "sig_handler()" as the signal handler function for the sigkill signal, without the complexity of using when the sigkill signal is sent to a process running this code, by a user typing "kill -kill ", where the correct process id is used for to target the process, sig_handler() will be executed.
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, manyah6189
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
Do you know the correct answer?
Write a program using python that prompts for an integer and prints the integer, but if something ot...

Questions in other subjects:

Konu
Geography, 28.01.2020 17:58
Konu
Mathematics, 28.01.2020 17:58