<jupyter_start><jupyter_text>Factorial<jupyter_code>import os
from IPython.core.display import HTML
def load_style(directory = '../../myJupyterTutorial/', name='custom.css'):
        styles = open(os.path.join(directory, name), 'r').read()
        return HTML(styles)
load_style()
def factorial(n):
    fact = 1
    for i in range(n):
        fact = fact*(i+1)
    return fact

factorial(5)
list1= [1,2,3,4,5]
list(map(factorial,list1))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15879828326180256, 'fraction_numerical': 0.02145922746781116, 'mean_word_length': 4.367816091954023, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '169596', 'license': 'MIT', 'n_tokens_mistral': 178, 'n_tokens_neox': 176, 'n_words': 33, 'path': '00_PythonBasics/Lec10_Factorials.ipynb', 'repo_name': 'erkundanec/Data-Science-Full', 'size': '466'}