-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction.py
More file actions
41 lines (32 loc) · 791 Bytes
/
Copy pathfunction.py
File metadata and controls
41 lines (32 loc) · 791 Bytes
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)