Question: Convert the given below C++ code into python. complete and step by step answer required #include #include using namespace std; void Add_and_Reverse(int n) { int
Convert the given below C++ code into python.
complete and step by step answer required
#include
} } bool palindrome(char *b, int e) { static int s = 0; if (s == e) return true; if (b[s] != b[e]) { return false; } if (s < e + 1) { s++; return palindrome(b, e - 1); return true; } return -1; } int main() { int choice,f; choice=true; while(choice==true)
{ f1:cout<<"press 1 to check Add_and_Reverse"<
cin >> aa[i]; } if (palindrome(aa, a - 1) == true) { cout << "Yes it is a palindrome" << endl; } else { cout << "No it is not a palindrome" << endl; } goto f1; case 3: goto f; break; default : cout << "wrong input, enter your number again" << endl; goto f1; } } f:cout<<"";
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
