-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.py
More file actions
49 lines (25 loc) · 769 Bytes
/
Copy pathfunctions.py
File metadata and controls
49 lines (25 loc) · 769 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
42
43
44
45
46
47
48
49
# Functions
print("Start")
def kahihi(kka):
username = a.split(" ")
print(username)
username = "Satyen Deshpande"
#kahihi(username)
a = ("string", "number", "symbol")
b1 = ["string", "number", "symbol"]
b = [56, 32, 98712]
print(type(a))
print(type(b))
total = 0
for i in b:
total = b[i] + total
print(total)
# Write a Python function to find the Max of three numbers.
# Write a Python function to check whether a number is even or odd
#Write a Python function to sum all the numbers in a list.
#Sample List : (8, 2, 3, 0, 7)
#Expected Output : 20
#Write a Python program to reverse a string. Go to the editor
#Sample String : "1234abcd"
#Expected Output : "dcba4321"
#Write a Python function to check whether a number is even or odd