summaryrefslogtreecommitdiff
path: root/python/atms-310/homework/homework1.txt
blob: a59656d83ad6b407a935b3305ab819af6a1022f7 (plain)
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
1. input:
	keyboard, mouse, other HID's, cameras, joysticks, game controllers
output:
	any kind of display, headphones, speakers, vibration motors, a teletype terminal

2. outputs of operations as stated:
	True
	33.0
	24
	False
	True
	False
operations of opposite result for a,d,e,f:
	3.0 == 3.1
	4 == 4
	(6 <= 5) or (5 <= 4)
	(3 <= 5) and (3 <= 4)

3. address dict

redmond costco (no i dont live in redmond)
c = {'building number': '7725',
     'street name': '188th Ave NE',
     'city': 'Redmond',
     'state': 'Washington',
     'zip code' : 98052}

print('redmond costco is located at:')
print(c['building number'], c['street name'], c['city'],',', c['state'],',', c['zip code'])

# the above code outputs this:
	redmond costco is located at:
	7725 188th Ave NE Redmond , Washington , 98052