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
import os | |
import sqlite3 | |
import operator | |
from collections import OrderedDict | |
import matplotlib.pyplot as plt | |
import webbrowser as wb | |
def parse(url): | |
try: | |
parsed_url_components = url.split('//') |
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
#floyd triangle | |
def floyd(n): | |
count = 1 | |
s = "" | |
for i in range(1,n+2): | |
for j in range(1,i): | |
s = s + " " + str(count) | |
count = count + 1 | |
print(s) | |
s = "" |
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
#pyramid | |
n=5 | |
for i in range(0,n): | |
s=' '*(n-i) | |
s= s+ '*'*(i*2-1) | |
print(s) |
NewerOlder