-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e45bdee
commit 9bd366b
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |