Which is more compatible ane preferable in python and why ??? 1. 4 not in nums 2. not 4 in nums | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Which is more compatible ane preferable in python and why ??? 1. 4 not in nums 2. not 4 in nums

11th Nov 2016, 10:51 AM
PAWAN KUMAR
PAWAN KUMAR - avatar
2 Answers
+ 1
4 not in nums it is more readable and so is generally preferred
11th Nov 2016, 1:39 PM
Luke Armstrong
0
yes 4 not in nums is more readable and compatible.
13th Nov 2016, 8:14 AM
Aryan
Aryan - avatar