0
Please explain this
I am confused to use functions any ,all s=[1,2,3,4,5,9,-10] if all(s)<7: print("yes") else: print("no") ====>yes s=[1,2,3,4,5,9,-10] if any(s)<7: print("yes") else: print("no")=====>yes
1 Answer
I am confused to use functions any ,all s=[1,2,3,4,5,9,-10] if all(s)<7: print("yes") else: print("no") ====>yes s=[1,2,3,4,5,9,-10] if any(s)<7: print("yes") else: print("no")=====>yes