-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvar.py
45 lines (22 loc) · 1.06 KB
/
var.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
44
45
# this is an example of a file containing python code
# but this code doesn't really do anything other than story variables
# something to note: lines that begin with the number/hash symbol signify notes
# such notes are often the way we document what we're doing
# that documentation reminds us later of what we were doing/trying to do
# and it lets coworkers or others on github know what's going on, too
# this is an integer
some_num = 21
# a string
saying = "i\'m just saying there are many things to learn about Python"
# a string with too much white space
ugly_string = " IRE is lots of fun "
# a float
set_price = 5.95
# a boolean
at_ire_phoenix = True
# a list - note the brackets and commas
months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov']
# a dictionary - note the curly braces and sets of stuff
person_data = {'first_name': 'Mabel', 'last_name': 'Smith', 'middle': 'Q', 'city': 'Phoenix'}
# a list of lists
multi_list = [['apricot', 'peach', 'avocado'], ['Honda', 'Ford', 'Toyota'], [11, 23, 31]]