“”“Python programming”""
def calc(p):
q=0;
while(p>0):
q+=(p%10);
p=int(p/10);
print(q)
m=1;
n=list();
s=int(input("Enter the number of test cases:"));
for i in range(s):
n.append(int(input("Enter your no.")));
for p in n:
for i in range(p+1):
if(i==0):
pass;
else:
m=m*i;
calc(m);
You don’t have to print the statements like these
Enter the number of test cases
You just take the input from stdin and print the output on stdout.
You strictly have to follow instructions mentioned in the OUTPUT section of the problem. Just output what are you asked to output, nothing more nothing less, not even a character.
Here is a sample solution in Python.
Sample Solution in Python
Hope it helps, Best Luck 
moreover there is no point of testcases in that question alse 