lst=[]
n=int(input())
for i in range(0,n):
ele=int(input("Enter: "))
lst.append(ele)
for i in range(ele+1):
power = i * i
if power == ele:
print("perfect sq")
elif power > ele:
print("not a perf sq")
I've tried a few things but got stuck here, while this worked for single input, it doesn't for multiple inputs.
If you're going mainly on user-inputs, then you can run a while loop until the user doesn't enter
"Yes"
.