subject
Computers and Technology, 20.10.2021 04:30 soniah

[Python]You have been asked to write a loop that outputs values in a database column ranging between 10 and 100. Any number that is not divisible by 5, and any value that is not an integer, should be ignored. When the value in the loop hits 95, break the loop prematurely. One of your team members has advised the use of break, continue, and pass statements. Define a for loop, using the range function to create the lower (10) and upper (100) limits.

Define a condition that checks for zero.

Define a condition that checks whether the number is divisible by 5.

Define a condition that checks the data type.

Define a condition that checks for 95, and breaks the loop.

Define a condition that uses the pass statement if the number doesn't meet any condition.

Print the number if it meets the condition.

The output will be as shown in Snippet 3.65:

10

15

20

25

30

35

...

...

80

85

90

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
You are almost finished updating a web site. as part of the update, you have converted all pages from html 4.0 to html5. the project is currently on schedule. however, your project manager has been asked by the marketing team manager to justify a day of time spent validating the site's html5 pages. the marketing team manager does not have technical knowledge of the internet or the web. which is the most appropriate explanation to provide to the marketing team manager?
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Select all that apply. which of the following are proofreading options included in microsoft word? spell check find replace grammar check formatting check
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What part of the interface displays the external references contained in a selected cell? the status bar the review tab the scroll bar the formula bar
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
You know the right answer?
[Python]You have been asked to write a loop that outputs values in a database column ranging between...
Questions
Questions on the website: 13722363