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 xmassTree(floors): | |
for x in [z for z in range(1, floors * 2 + 1, 2)]: | |
floors -= 1 | |
print(' ' * floors, '*' * x) | |
xmassTree(5) | |
def xmasttree(count): |
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
numbers = [1, 2, 3, 2, 2, 2, 2, 2, 9, 1] | |
def find_most_common_number(numbers): | |
from collections import Counter | |
return print(Counter(numbers).most_common(1)[0][0]) | |
def find_most_common_number(numbers): | |
count_list = [[x, numbers.count(x)] for x in set(numbers)] |
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 pandas as pd | |
from google.analytics.data_v1beta import BetaAnalyticsDataClient | |
from google.analytics.data_v1beta.types import ( | |
DateRange, | |
Dimension, | |
Metric, | |
MetricType, |