FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python_adv/function.py at main · Jit2005git/python_adv · GitHub
Jit2005git
/
python_adv
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python_adv
/
function.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (32 loc) · 791 Bytes
Breadcrumbs
python_adv
/
function.py
Copy path
File metadata and controls
41 lines (32 loc) · 791 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""def greet(name):
print("Hello:",name)
greet("Karan")
greet("Arjun")"""
# def square(x):
# return x*x
# n=int(input("Enter a number:"))
# x=str("The number is: ") + str(square(n))
# print(x)
# def multiply(a,b):
# print("only print",a*b)
# return ("multiplication is:",10*b)
# result=multiply(5,6)
# print("result is:",result)
# def count_even(n):
# count=0
# for i in range(1,n+1):
# if i%2==0:
# print(i)
# count+=1
# return count
# n=int(input("Enter a number: "))
# result=count_even(n)
# print("Count of even numbers:", result)
def
check_result
(
marks
):
if
marks
>=
40
:
return
"Pass"
else
:
return
"Fail"
marks
=
int
(
input
(
"Enter marks: "
))
result
=
check_result
(
marks
)
print
(
"Result:"
,
result
)
Back
|
FazBrowse Home
|
New Git URL