palindrome/transform/Transform.py

12 lines
264 B
Python
Raw Normal View History

2021-03-17 09:32:45 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class Transform(object):
"""Class to transform a given integer into a palindrome"""
def __init__(self):
super(Transform, self).__init__()
@staticmethod
def palindrome(int):
return int