Skip to content

Instantly share code, notes, and snippets.

@Eyakub
Last active September 27, 2017 20:49
Show Gist options
  • Save Eyakub/3c4b7ee68e6451558b419e2ab97f587c to your computer and use it in GitHub Desktop.
Save Eyakub/3c4b7ee68e6451558b419e2ab97f587c to your computer and use it in GitHub Desktop.
CodeFights Challenge :p
Having a fun time here doing Codefight Challenge :p
def checkPalindrome(inputString):
return inputString == inputString[::-1]
pw = checkPalindrome("noon")
print("Palindrome is: ",pw)
import math
def shapeA(n):
return math.pow(n, 2) + math.pow(n - 1, 2)
print(int(shapeA(int(input("Enter a number: ")))))
@Eyakub
Copy link
Author

Eyakub commented Sep 27, 2017

Passing time with python at CodeFight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment