pimento[~]$ fixscreenmirror pimento[~]$ update21 No new updates found. Last two updates shown below 57 minutes ago Mon Sep 17 09:41:00 2018 -0400 inclass/w03/conditionals1.py inclass/w03/conditionals2.py inclass/w03/username.py 3 days ago Fri Sep 14 18:46:13 2018 -0400 labs/02/QUESTIONS-02.txt labs/02/border.py labs/02/digipet.py labs/02/maxmin.py labs/02/text2tri.py pimento[~]$ pimento[~]$ cd cs21/inclass/w02 pimento[w02]$ atom rand_loop.py pimento[w02]$ python3 rand_loop.py Sum: 0 pimento[w02]$ python3 rand_loop.py Sum: 20 pimento[w02]$ python3 rand_loop.py Sum: 24 pimento[w02]$ python3 rand_loop.py Sum: 27 pimento[w02]$ python3 rand_loop.py Sum: 20 pimento[w02]$ python3 rand_loop.py 7 2 8 3 9 Sum: 29 pimento[w02]$ python3 rand_loop.py 7 7 2 8 5 Sum: 29 pimento[w02]$ python3 rand_loop.py 4 8 2 6 5 Sum: 25 pimento[w02]$ python3 rand_loop.py 7 6 0 5 0 Sum: 18 pimento[w02]$ python3 rand_loop.py Traceback (most recent call last): File "rand_loop.py", line 26, in main() File "rand_loop.py", line 20, in main total = total + num # accumulate! UnboundLocalError: local variable 'total' referenced before assignment pimento[w02]$ cd .. pimento[inclass]$ cd .. pimento[cs21]$ cd practice/ pimento[practice]$ atom stretch.py pimento[practice]$ python3 stretch.py Enter a string: weekend Traceback (most recent call last): File "stretch.py", line 22, in main() File "stretch.py", line 20, in main print(s[i]) NameError: name 's' is not defined pimento[practice]$ python3 stretch.py Enter a string: weekend w e e k e n d pimento[practice]$ python3 stretch.py Enter a string: weekend ww ee ee kk ee nn dd pimento[practice]$ python3 stretch.py Enter a string: weekend 0 ww 1 wwee 2 wweeee 3 wweeeekk 4 wweeeekkee 5 wweeeekkeenn 6 wweeeekkeenndd pimento[practice]$ python3 stretch.py Enter a string: weekend wweeeekkeenndd pimento[practice]$ pimento[practice]$ python3 ~/Documents/username_solution.py Enter your first name: rohan Enter your last name: hejmadi Username: rhejmad1 Email: rhejmad1@swarthmore.edu pimento[practice]$ python3 ~/Documents/username_solution.py Enter your first name: kendre Enter your last name: thomas Username: kthomas1 Email: kthomas1@swarthmore.edu pimento[practice]$ python3 ~/Documents/username_solution.py Enter your first name: barack Enter your last name: obama Username: bobama1 Email: bobama1@swarthmore.edu pimento[practice]$ python3 Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> min(5,6) 5 >>> min(8,6) 6 >>> max(8,6) 8 >>> exit() pimento[practice]$ cd ../inclass/w03/ pimento[w03]$ atom username.py pimento[w03]$ python3 username.py File "username.py", line 1 """ ^ IndentationError: unexpected indent pimento[w03]$ python3 username.py Enter your first name: sara Enter your last name: mathieson pimento[w03]$ pimento[w03]$ python3 username.py Enter your first name: Lauri Enter your last name: Courtney LC LCo LCou LCour LCourt LCourtn LCourtne LCourtney pimento[w03]$ python3 username.py Enter your first name: lauri Enter your last name: courtney lc lco lcou lcour lcourt lcourtn pimento[w03]$ python3 username.py Enter your first name: barack Enter your last name: obama bo bob boba bobam bobama pimento[w03]$