Answer:
In python, the statement can be written as:
if(special_num in special_list): print("Special Number")
Step-by-step explanation:
We need to create a list with the name 'special_list' with some values and then check whether special_num is in the list or not using the membership operator.
Membership operator in python: in
Let us do it step by step in python:
special_list = ['1', '2', '3','4'] #A list with the values 1, 2, 3 and 4
special_num = input("Enter the number to be checked as special \t")
#Taking the input from the user in the variable special_num.
if(special_num in special_list): print("Special Number")
#Using the membership operator in to check whether it exists in the list or not.
Please refer to the image attached for the execution of above program.
So, the answer is:
In python, the statement can be written as:
if(special_num in special_list): print("Special Number")