diff --git a/build.py b/build.py index e69de29..0fe4cf3 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,8 @@ +def is_rotation(string1, string2): + if string1 == None or string2 == None: + return False + elif string1 == string2 or (string2 in string1*2 and len(string1) == len(string2)): + return True + else: + return False +is_rotation (string1 = 'hello', string2 = 'ohleol') diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..dbb2699 Binary files /dev/null and b/build.pyc differ diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000..42d58ff Binary files /dev/null and b/tests/__init__.pyc differ diff --git a/tests/test_is_rotation.pyc b/tests/test_is_rotation.pyc new file mode 100644 index 0000000..6b79c47 Binary files /dev/null and b/tests/test_is_rotation.pyc differ