subject

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Each time you save a document, you will need to type in the file type in which it should be saved you can select the save button to save it with the same file name if it has been previously saved you will need to select the location to save the file you will need to use the save as dialog box
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Colby works as a shipping clerk for a major package delivery service. some of his daily tasks include tracking shipments and entering orders. which aspect of the information technology cluster would he most likely be trained in? a.networkingb.databasesc.hardwared.software
Answers: 2
question
Computers and Technology, 24.06.2019 20:00
Write c++programs for the following problem: let the user enter two numbers and display which is greater. !
Answers: 1
You know the right answer?
Write a program using python that prompts for an integer and prints the integer, but if something ot...
Questions
question
Mathematics, 08.03.2021 23:10
question
Mathematics, 08.03.2021 23:10
question
English, 08.03.2021 23:10
question
Mathematics, 08.03.2021 23:20
question
Mathematics, 08.03.2021 23:20
question
Mathematics, 08.03.2021 23:20
Questions on the website: 13722361