Skip to content

Commit

Permalink
Create basics_function_for_student
Browse files Browse the repository at this point in the history
  • Loading branch information
sksalahuddin2828 authored Apr 22, 2023
1 parent e45bdee commit 9bd366b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions basics_function_for_student
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
def sum(a=10,b=21):
print(a+b)

sum()
u = int(input("Enter 1st: "))
o = int(input("Enter 2nd: "))
sum(u,o)

x = 20
y = 30
sum(x,y)

p = 100
_ = 20
sum(p,_)

# with return keyword____

def square(x):
return x*x

s=square(10)
print(s)

def square(x):
return x*x,x+12

s=square(5)
print(s)

0 comments on commit 9bd366b

Please sign in to comment.