Easy
any() With a Generator
Read integers and print
True if any of them is negative, using any(x < 0 for x in nums).Input
Integers separated by spaces.
Output
True or False.
Sample 1
Input
1 2 -3
Output
True
Sample 2
Input
1 2 3
Output
False
Output appears here