SyntaxFix
Write A Post
Hire A Developer
Questions
While, @jamylak's approach is the better one, here is an alternative approach
>>> N=[2,3,5] >>> P = 5 >>> type(P) in (tuple, list) False >>> type(N) in (tuple, list) True