<jupyter_start><jupyter_text>Faang Day 1>  Great Developer with great practice- toc: true - badges: true- comments: true- categories: [practice,dream]- hide: false<jupyter_code>def barfi(size):
    star = 1
    space = size // 2 
    flag = 0
    for i in range(size):
        print(" "*space,"*"*star)
        if star < size and not flag:
            star += 2 
            space -= 1
        else:
            flag = 1
            star -= 2 
            space += 1

barfi(5)
def barfi_box(size):
    star = size // 2 + 1 
    space = 1
    flag = 0 
    for i in range(size):
        print("*"*star," "*space,"*"*star)
        if space < size and not flag:
            space += 2 
            star -= 1
        else:
            flag = 1 
            space -= 2
            star +=1

barfi_box(5)
def cross(size):
    for i in range(1,size+1):
        for j in range(1,size+1):
            if i == j or (i+j) == (size+1):
                print("*",end="")
            else:
                print(" ",end="")
        print()
cross(5)
def barfi_outline(size):
    in_space = -1 
    outer_space = size // 2
    for i in range(1,size+1):
        print(" "*outer_space,"*"," "*in_space,end="")
        if i > 1 and i < size:
            print("*",end="")
        if i <= size // 2:
            outer_space -= 1
            in_space += 2 
        else:
            outer_space += 1
            in_space -= 2
        print()
barfi_outline(5)
print("a"*-1)
def arrow(size):
    space = size // 2
    star = 1 
    for i in range(1,size+1):
        for sp in range(space):
            if sp == size//2:
                print("*",end=" ")
            else:
                print(" ",end=" ")
        print("*"*star)
        if star <= size//2:
            star += 1
        else: 
            star -= 1
arrow(5)<jupyter_output>*
    **
    ***
    **
    ***
{'fraction_non_alphanumeric': 0.1496488384656942, 'fraction_numerical': 0.025391680172879523, 'mean_word_length': 1.3383838383838385, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '434469', 'license': 'Apache-2.0', 'n_tokens_mistral': 646, 'n_tokens_neox': 595, 'n_words': 175, 'path': '_notebooks/2022-05-05-faang-day-1.ipynb', 'repo_name': 'tpriyanshukrishnan/sysarch', 'size': '1851'}