In this python if else program, we will check whether the given input type is List or not.
Steps to solve the program
- Take input from the user.
- Using an if-else statement check whether the given input is a List type or not.
- Print the output.
iput = [1,3,6,8]
if type(iput) == list:
print("True")
else:
print("False")
Output :
True