<jupyter_start><jupyter_text>Function<jupyter_code>def sum(a,b):
    z=a+b
    return z
x=10
y=20
a=sum(x,y)
print(a)<jupyter_output>30<jupyter_text>default arguments to a function<jupyter_code>def pow(x,y=2):
    return x**y
s=10
e=4
print(pow(10,4))
print(pow(12))
def sum3(a=3,b=1,c=2):
    return a+b+c
print(sum3(1,2,3))
print(sum3(1,2))
print(sum3(10))
print(sum3(b=10))<jupyter_output>6
5
13
15
{'fraction_non_alphanumeric': 0.18952618453865336, 'fraction_numerical': 0.09476309226932668, 'mean_word_length': 7.553191489361702, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '419560', 'license': 'MIT', 'n_tokens_mistral': 224, 'n_tokens_neox': 212, 'n_words': 31, 'path': 'Lecture 2 Conditionals loops and Functions/Functions/Functions-checkpoint.ipynb', 'repo_name': 'Paraskk/Data-Science-and-Machine-Leaning-', 'size': '401'}