This file contains 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 Factorial(num): | |
if num == 0: | |
return 1 | |
else: | |
return num * Factorial(num-1) | |
print Factorial(int(input())) |
This file contains 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 reverse_string(str): | |
return str[::-1] | |
print reverse_string(raw_input()) |
This file contains 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
#page spyder algorithms | |
import urlparse | |
import urllib | |
from bs4 import BeautifulSoup | |
url = "http://github.com" | |
urls = [url] | |
visited = [url] |