Last active
September 27, 2017 20:49
-
-
Save Eyakub/3c4b7ee68e6451558b419e2ab97f587c to your computer and use it in GitHub Desktop.
CodeFights Challenge :p
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Having a fun time here doing Codefight Challenge :p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def checkPalindrome(inputString): | |
return inputString == inputString[::-1] | |
pw = checkPalindrome("noon") | |
print("Palindrome is: ",pw) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def shapeA(n): | |
return math.pow(n, 2) + math.pow(n - 1, 2) | |
print(int(shapeA(int(input("Enter a number: "))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Passing time with python at CodeFight