-
Notifications
You must be signed in to change notification settings - Fork 101
/
day_8_end.py
52 lines (29 loc) · 873 Bytes
/
day_8_end.py
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
class Animal():
name = 'Amy'
noise = "Grunt"
size = "Large"
color = "Brown"
hair = 'Covers body'
def get_color(self, abc):
return self.color + " " + abc
@property
def make_noise(self):
return self.noise
dog = Animal()
dog.get_color("red")
dog.make_noise
#arg = Positional Arguments
#kwarg = Keyword Argument
abc = "new string"
def some_func(arg_1, arg_2, kwarg_1=None, kwarg_2=None):
print(arg_1, arg_2)
if kwarg_1 != None:
print(kwarg_1)
#return arg_1
some_func("abc", "car", kwarg_1='Not a big deal')
email_address = "another@gmail.com"
to_list = ['abc@gmail.com']
from_list = ['another2@gmail.com', 'hello@teamcfe.com']
def send_email(email, to_list=to_list, from_list=from_list):
pass
send_email("hello@teamcfe.com", to_list=['abc@gmail.com'], from_list=['abc@gmail.com'])