1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
12345 [234]
4 years ago
9

The slice_gen generator takes one iterable and a start, stop and step values (all int, with the same meanings as the values in a

slice: [start:stop:step], except start and stop must be non-negative and step must be positive; raise an AssetionError exception if any is not). It produces all the values in what would be the slice (without every putting all the values in a list and slicing it). For example
Computers and Technology
1 answer:
babunello [35]4 years ago
6 0

Answer:

See Explaination

Explanation:

def slice_gen(iterable, start, stop, step):

it = iter(iterable)

if start < 0 or stop < 0 or step <= 0:

raise AssertionError

count = -1

nextI = start

while True:

count += 1

try:

item = next(it)

if count == stop:

break

elif count == nextI:

nextI = nextI + step

yield item

except:

return

for i in slice_gen('abcdefghijk', 3, 7, 1):

print(i, end='')

print("")

You might be interested in
An advertisement on a web site touts that the software for sale enables users to enter typed text, handwritten comments, drawing
Nimfa-mama [501]

It is a note taking software because it indicates in the advertisement that it enables users to enter typed text, handwritten comments, drawings, or sketches anywhere on a page and then save the page.

Therefore, the kind of software this advertisement selling is a Note taking software.

4 0
3 years ago
Select all that apply.
professor190 [17]
Social worker and legal aid worker

4 0
3 years ago
Read 2 more answers
(I need help also can u guys just give me some example just in case I got confuse)
Vesna [10]

Answer:

1) there should be boundaries because you never know what could happen on the internet as people tend to not have control of who is on theyre account or texting them,

2) if you have a phone you should be responsible and not do something that could get you in alot of trouble ,

3) it's important because if somebody else gets your information things can be sent that you didnt send ,that can get you in legal trouble or start a fued between people,

5) comments only matter if you let them matter as people's opinions shouldn't matter to you as long as your happy,

6) block, report , and notify a trusted adult.

8 0
3 years ago
Which of the following views is the best view to use when setting transition effects for all slides in a presentation?
alexgriva [62]

Answer:

Slide sorter view

8 0
3 years ago
Read 2 more answers
Mary Kay, Inc., sells facial skin care products and cosmetics around the globe. The business model is to provide one-on-one, hig
Nutka1998 [239]

Answer:

a

Explanation:

3 0
3 years ago
Other questions:
  • What is a lease? AA contract outlining the terms of a mortgage. BA contract outlining the terms under which a landlord agrees to
    15·1 answer
  • A(n) _________ website contains factual information, such as libraries, encyclopedias, dictionaries, guides, and other types of
    8·1 answer
  • What practices will help you avoid sending out e-mail to the wrong person?
    15·1 answer
  • Which type of software is the most similar to database software?\
    5·1 answer
  • Being able to express your thoughts in an email is a primary technology skill. true or false.
    9·2 answers
  • Order the steps to use a logical argument as a rule type.
    15·2 answers
  • Why do we need on output device?​
    11·2 answers
  • 2+2? D: I don't knoww​
    12·1 answer
  • An anchor tag can be coded using which two attributes?
    7·1 answer
  • Go to the Subset tab, which gives a subset of randomly chosen data from the first tab. Go to your Math Tools and open the Graph
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!