-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweekly3code.py
More file actions
38 lines (28 loc) · 878 Bytes
/
weekly3code.py
File metadata and controls
38 lines (28 loc) · 878 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
def isPowerGreaterThan_5000(base, exponent):
result = base ** exponent
return result > 5000
# Example usage
base_number = 10
exponent_number = 10
if isPowerGreaterThan_5000(base_number, exponent_number):
print(f"{base_number} raised to the power of {exponent_number} is greater than 5000.")
else:
print(f"{base_number} raised to the power of {exponent_number} is not greater than 5000.")
def is_divisible_by_ten(number):
return number % 10 == 0
# Example usage
num = 45
if is_divisible_by_ten(num):
print(f"{num} is divisible by ten.")
else:
print(f"{num} is not divisible by ten.")
def outer_fun(a, b):
return inner_fun(a, b)
def inner_fun(c, d):
return c + d
res = outer_fun(5, 10)
print(res)
def display(**kwargs):
for i in kwargs:
print(i)
display(emp="Kelly", salary=9000)