Write a python program with functions that checks whether the number is perfect, prime and palindrome or not
Answers
Answered by
1
Answer:
num = 11 #you can take it through input function also
if num > 1:
for i in range(2, num):
if (num % i) == 0:
print(num, "is not a prime number")
break
else:
print(num, "is a prime number")
else:
print(num, "is not a prime number")
patelhrishikesh01:
use indentations according to your logic, i forgot to put them
Similar questions