To transfer google play balance, opinion rewards or gift cards to PayPal, Paytm, PhonePe, Google Pay or any UPI ID linked bank account , you can use QxCredit :Rewards Convertor app which is available on google play store: You will get back 80% of the google play balance. App link: https://play.google.com/store/apps/details?id=qxcoding.qx_credit_reboot Follow these steps to transfer your play balance to paypal or UPI: 1) download app from play store. 2) login with your google account and phone number. 3) choose a token amount which you want to convert/transfer. 4) Enter your payout details.(UPI ID or PayPal Email) 5) wait for an acknowledgement mail form qxcredit containing information about your purchased token. 6) you will receive the amount within 3 days. 7) if you face any issues you can raise a query on website: https://qx-credit.web.app/#/contact_support About app: Introducing QxCredit : Rewards Converter Convert /Transfer or Exchange your Google Play Balance and opini...
Here i'am going to take two examples one is the basic method (long and general) and other in which i will use some inbuilt function of python to make the program a lot easier.
1st method
- Here , the idea is to break the digits of a number and place them in their revered order by multiplying 1 with last digit and adding 10*2nd last digit and again adding 100*3rd last digit and so on till we reach to first digit.
- after getting the reverse of a number we have to check that it is equal to the original number.
if __name__ == '__main__':
num = int(input())
rem = rev = 0
temp = num
while num != 0:
rem = num % 10
rev = rev * 10 + rem
num //= 10
if temp == rev:
print("palindrome")
else:
print("not palindrome")
2nd method
In this method, reversed() built in function will be used to reverse the given number and check if the number is palindrome or not.- take input in integer form
- convert it into list
- check if the number is same as in the reversed form
- if yes print "palindrome" else print "not palindrome".
if __name__=='__main__':
num=int(input())
num=[int(i) for i in str(num)]
if num == list(reversed(num)):
print("palindrome")
else:
print("not palindrome")
we can also implement this as a user defined function isPalindrome() : it will return true if number is palindrome or false if not palindrome.def ispalindrome(num):
num = [int(i) for i in str(num)]
if num == list(reversed(num)):
return True
else:
return False
if __name__ == '__main__':
num = int(input())
if ispalindrome(num):
print("palindrome")
else:
print("not palindrome")
if any doubts or queries please comment :)

The second user defined function is quite impressive!
ReplyDeleteNaies
ReplyDeleteIts nice not naies
DeleteBut thanks
Delete