Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f3aa7d5

Browse files
Create 3 Function
1 parent 1fe0ac1 commit f3aa7d5

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

‎3 Function

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#if
2+
amount = 10000
3+
if amount > 1000:
4+
print("you have enough money to pay the fees")
5+
elif amount == 1000:
6+
print("you have exact 1000 rupees")
7+
else:
8+
print("you don't have enough money")
9+
10+
11+
12+
#logical keywords
13+
x, y = 100, 20
14+
if x == 10 or y == 20:
15+
print("you enter correct no")
16+
else:
17+
print("incorrect no")
18+
19+
20+
#function: def - keyword
21+
22+
x = 10
23+
y = 20
24+
#print(x + y)
25+
26+
27+
def addition():
28+
a = 10
29+
b = 20
30+
print(a + b)
31+
32+
addition()
33+
34+
def add(a, b):
35+
print(a + b)
36+
add(2, 4)
37+
add(3, 4)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /