If missing value in list do this else print [closed]

Multi tool use
If missing value in list do this else print [closed]
I have this currently
def missing(frames):
if len(m) <= 1:
m.append(str((list(chain.from_iterable((frames[i] + d for d in range(1, diff))
for i, diff in enumerate(imap(sub, frames[1:], frames))
if diff > 1)))))
else:
return 'No missing frames'
How would I make an if statement to say if there are no missing frames print no missing frames in the flag? My current program doesn't work at all. It only appends frames if they are missing it doesn't print out no frames are missing
This question appears to be off-topic. The users who voted to close gave this specific reason:
m
if
else
Sorry, its updated now
– Dr. Woo
Jul 3 at 1:06
(Woahs ((your code) looks (kinda (like (Lisp)))))
– Mateen Ulhaq
Jul 3 at 1:20
(Woahs ((your code) looks (kinda (like (Lisp)))))
It's still not clear what's going on. The current function you've provided is not valid. (What is m? Why does only one path have a return statement and the other one... returns nothing?)
– Mateen Ulhaq
Jul 3 at 1:22
Please use the simplest example and remove all the available that are relative to your context but not relative to your question.
– ramwin
Jul 3 at 1:23
A few things. What is
m
? It doesn't appear to be a parameter of the function. Also your indentation is wonky. The function indentation is no doubt just a result of the code block being formatted incorrectly, but the return statement is on the same level as theif
. This makes theelse
into invalid syntax. There are several other issues with this code (e.g. doesnt always return something). Could you formulate an mcve program so we can see your issue? If you can supply some input data, it will allow the function to run on something.– Paul Rooney
Jul 3 at 1:03