Skip to content

Lesson6 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
> Learning Python Programming . . .

> Learning Python Programming Language
lesson 6
34 changes: 34 additions & 0 deletions lesson6.py
Original file line number Diff line number Diff line change
@@ -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')