Created
November 1, 2015 05:15
-
-
Save Grumblesaur/53da46a625d49e295239 to your computer and use it in GitHub Desktop.
Solution to an asinine codegolf challenge (http://codegolf.stackexchange.com/questions/62454/five-very-simple-challenges)
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
# 1 | |
print('Hello, World!') | |
# 2 | |
from math import factorial as f | |
print(str(f(int(input())))) | |
# 3 | |
def p(N):r=range(2,N);return sum(x for x in r if sum(x%d==0 for d in r)<2) | |
# 4 | |
def U(): | |
Q=[] | |
for T in input().lower(): | |
if T not in Q and not T.isspace():Q+=[T] | |
return "".join(Q) | |
# 5 | |
print(" * \n *** \n ***** \n*******\n ***** \n *** \n * \n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment