Answer:
It uses a recursive method to find out if a string is a palindrome
Explanation:
Palindrome is a word or a sequence which is read same as backward as forwards. There are various method to find a palindrome. Palindrome can be determined recursively by identifying the first and last letters of the word. These first and last letter should be same. If they are same then the word or sequence is palindrome.
Answer:
for i in range(56,71):
print(i)
Explanation:
By the range 56 to 71 it means that for loop will run when i=56 to i=71, but the upper bound is one less than the upper bound, and which is 70. So the above loop will print integers from 56 to 70.
And the above code is in Python.
Answer:
Check the explanation
Explanation:
relatives.pl
/* Facts */
male(ace).
male(john).
male(jack).
male(bill).
male(david).
male(brown).
male(daniel).
female(cecil).
female(aba).
female(cathy).
parent(john,ace)
parent(tom,john)
parent(jack,john)
parent(bill,aba)
parent(brown,aba)
parent(cecil,bill)
parent(david,cecil)
parent(cathy,brown)
parent(daniel,cathy)
parent(ellen,daniel)
/* parent(X,Y) -> Y is parent of X */
wife(ceceil,jack) /* wife(X,Y) -> Y is wife of X */
Answer of 2-2
Considering all facts and rules answer will be daniel,ellen.
Answer 2-3
Considering all facts and rules answer will be bill.
Answer 2-4
Considering all facts and rules X will be john and y will be cecil.
Answer 2-5
Considering all facts and rules X will be tom and y will be david.
Cobol and python it's some other let me think