<jupyter_start><jupyter_text>Question 1: Create a function that can accept two arguments, nameand age and print its valueQuestion 2: Create a function where the tuple is passed asarguments and append it with “Happy Learning”Question 3: Write a function calculation() such that it can accept twovariables and calculate the addition and subtraction of it. And also itmust return both addition and subtraction in a single return callQuestion 4: Write a function to calculate the sum of numbers from 0to 10Question 5: Assign a different name to function and call it throughthe new name, for example function name is one, but calling thefunction through another name twoQuestion 6: Write a function func1() such that it can accept avariable length of argument and print all arguments value<jupyter_code>'''Question 1: Create a function that can accept two arguments, name
and age and print its value'''

def twoArug():
    name=input()
    age=input()
    return (print(name,age))
twoArug()
'''Question 2: Create a function where the tuple is passed as
arguments and append it with “Happy Learning”
'''

def tupleappend(tup):
    str1 = ['Happy Learning']
    return (tup+tuple(str1))
tupleappend((12,'13',12))
'''Question 3: Write a function calculation() such that it can accept two
variables and calculate the addition and subtraction of it. And also it
must return both addition and subtraction in a single return call'''

def calculation(a,b):
    add=a+b
    sub=a-b
    return(add,sub)

calculation(1,2)
    
'''Question 4: Write a function to calculate the sum of numbers from 0
to 10'''

def Oneto10sum():
    a=0
    for i in range(11):
        a+=i
    return a

Oneto10sum()

'''Question 5: Assign a different name to function and call it through
the new name, for example function name is one, but calling the
function through another name two'''

def Oneto10sum():
    a=0
    for i in range(11):
        a+=i
    return a
a=Oneto10sum
a()



'''Question 6: Write a function func1() such that it can accept a
variable length of argument and print all arguments value'''

def func1(*a):
    for i in a:
        print(i)

func1('a=1,b=1','fg')<jupyter_output>a=1,b=1
fg
{'fraction_non_alphanumeric': 0.078125, 'fraction_numerical': 0.02297794117647059, 'mean_word_length': 4.233173076923077, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '322651', 'license': 'CC0-1.0', 'n_tokens_mistral': 648, 'n_tokens_neox': 602, 'n_words': 309, 'path': 'Online Certificate Course in Data Science and Machine Learning/11 FuntionsExAnswers.ipynb', 'repo_name': 'jsrikantappa/nielit', 'size': '2176'}