palindrome/transform/Transform.py

12 lines
264 B
Python

#!/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