-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction types.py
More file actions
44 lines (27 loc) · 850 Bytes
/
Copy pathfunction types.py
File metadata and controls
44 lines (27 loc) · 850 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
def greet():
print("Hi, Mei and Yuna!")
def greet_two(name_one,name_two):
print("Hi, " + name_one + " and " + name_two)
def greet_three():
return "Hi, Yuna and Mei"
def greet_four(name_one, name_two):
return "Hi, " + name_one + " and " + name_two
message = greet_four("Momoka","Mio")
print(message)
#add, no return
def add(num_one,num_two):
print(num_one+num_two)
#add, return
def add_two(num_one,num_two):
return num_one+num_two
answer = add_two(1234134,13451234)
#functions with no variables, and no return
# ????
#functions with variables, and no return
print("Hello, everyone")
#functions with no variables, return
message = message.upper()
message = message.islower()
#functions with variables, and return
memory_location = id(message)
v = message.count("MO")