<jupyter_start><jupyter_text>input & return<jupyter_code>def hello_programming(name):
    print("hello")
    print(name)
hello_programming("Python")
hello_programming("Java")
def hello_program(name="python"):
    print("hello")
    print(name)
hello_program()
hello_program("java")
def summ(number1,number2):
    number3 = number1 + number2
    print(number3)
summ(5,8)
summ(10,-500)
def summation(num1,num2,num3):
    return num1+num2+num3
summation(10,20,30)
my_result = summation(10,20,30)
my_result
my_integer = summ(10,20)
my_integer
type(my_integer)
def control_string(s):
    if s[0] == "m":
        print("mmm")
control_string("paris")
control_string("metallica")
def control_string(s):
    if s[0] == "m":
        print(s.capitalize())
control_string("metallica")
control_string("amsterdam")<jupyter_output><empty_output><jupyter_text>arbitrary arguments & key word arguments<jupyter_code>def summation_2(*args):
    return sum(args)
summation_2(10,20,30)
summation_2(50,60,70,80)
def my_func(*args):
    print(args)
my_func(10,20)
my_func("a","b",1,2)
#def my_func_2(*atil):
#    print(atil)
#my_func_2("at","il",1,2,3)
def example_func(**kwargs):
    print(kwargs)
example_func(run=100,swim=200,basketball=300)
example_func(a=1,b=2)
def keyword_func(**kwargs):
    if "Metallica" in kwargs:
        print("Heavy Metalll!")
    else:
        print("Rock is dead!!")
keyword_func(Metallica=10,Madonna=5,Muslum=4)
keyword_func(Madonna=8,Mickey=4)<jupyter_output>Rock is dead!!
{'fraction_non_alphanumeric': 0.16172506738544473, 'fraction_numerical': 0.05525606469002695, 'mean_word_length': 6.815789473684211, 'pattern_counts': {'":': 2, '<': 8, '<?xml version=': 0, '>': 8, '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': '637427', 'license': 'MIT', 'n_tokens_mistral': 635, 'n_tokens_neox': 588, 'n_words': 88, 'path': 'PythonCourse-master/PythonCourse-master/17-MethodsAndFunctions.ipynb', 'repo_name': 'PacktPublishing/The-Complete-Quantum-Computing-Course-for-Beginners-', 'size': '1484'}