Answer:
In python, the statement can be written as:
<em>if(special_num in special_list): print("Special Number")
</em>
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: <em>in</em>
Let us do it step by step in python:
<em>special_list = ['1', '2', '3','4'] #</em>A list with the values 1, 2, 3 and 4
<em>special_num = input("Enter the number to be checked as special \t")
</em>
<em>#</em>Taking the input from the user in the variable special_num.
<em>if(special_num </em><em>in</em><em> special_list): print("Special Number")
</em>
#Using the membership operator <em>in </em>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:
<em>if(special_num in special_list): print("Special Number")
</em>