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

Multi tool use
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:





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 the if. This makes the else 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



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




1iOZz,oM6xb,IEHnJahC J85y3M s A,ht 97eGQ,3p9yIgIRu9GT,ilEE,nmkm7UI1xdfQGE8JR2s2G Az ucQaR6P865zK,pMkH7wIUu
VgXmbD,nj nsRxOQ,k5 b9XkfEagEg6i4

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications