Advanced Python Code Challenges: Lists Question 1


please can someone help me with question 1? I have no idea how to do it.

this is all I have got so far:

def every_three_nums(start):
  if start > 100:
    return []

How would you do it manually? Presumably you’d… count? So count. And then what?
Having a special case for start>100 seems quite redundant since you wouldn’t count past 100 anyway

If you have a problem that you can manually solve, then you already know a whole lot about what you need to do.

I still have no idea how to do it.
this is what I have learnt so far and i can’t think of a way to put it into code.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.