From 46751903eacf7fde4152a98696c6a9c6f1936257 Mon Sep 17 00:00:00 2001 From: coderpyaephyothant Date: Tue, 9 Jan 2024 23:00:37 +0630 Subject: [PATCH 1/2] lesson6 --- lesson6.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lesson6.py 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') + From daa89df6b333a97948df974a236666757e8b511a Mon Sep 17 00:00:00 2001 From: pyae phyo thant <96177991+coderpyaephyothant@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:59:39 +0630 Subject: [PATCH 2/2] Create README.md lesson 6 --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..79cd5fb --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +> Python Programming Lesson 6