33. Write a program, how to check if the input is in the given list or not ..?
Let a is the input value, then the program looks like this:
if type(a) is list: print("Type of a is a list.") else: print("Type of a isn't a list!")
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment