From a33d49ac4d1ce554c72770927957a089b4023bf1 Mon Sep 17 00:00:00 2001 From: pants Date: Mon, 21 Sep 2026 14:17:45 -0700 Subject: init --- python/atms-310/homework/homework1.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 python/atms-310/homework/homework1.txt (limited to 'python/atms-310/homework/homework1.txt') diff --git a/python/atms-310/homework/homework1.txt b/python/atms-310/homework/homework1.txt new file mode 100755 index 0000000..a59656d --- /dev/null +++ b/python/atms-310/homework/homework1.txt @@ -0,0 +1,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 -- cgit v1.2.3