diff --git a/README.md b/README.md index 0ecaa70..ad02f8f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1 @@ -> Learning Python Programming . . . - -> Learning Python Programming Language +lesson 6 \ No newline at end of file diff --git a/lesson6.py b/lesson6.py new file mode 100644 index 0000000..6c622c1 --- /dev/null +++ b/lesson6.py @@ -0,0 +1,34 @@ +# function +numbers = [1,2,3,4,5] +# print(len(numbers)) + +# import math +import math +# num = int(input('Enter number to make square root')) +# print('Answer of {} is : {} '.format(num,math.sqrt(num))) + +# programmer defined functions +# def ppt_function(): + # print('this is def function') + +# ppt_function() + +# add substract multiply and division +def add(a,p): + return print('added value is : ',a+p) + +def substract(a,p): + return print('subtracted value is : ',a-p) + +def multiply(a,p): + return print('multiply value is : ', a*p) + +def division(a,p): + return print('divided value is : ', a/p) + +add(5,4) +substract(5,4) +multiply(5,4) +division(5,4) +print('Calculated') +