Python 3.12.3 (main, Jun 19 2026, 12:46:00) [GCC 13.3.0] on linux Type "help", "copyright", "credits" or "license()" for more information. >>> word = 'Skidmore' >>> mylist = [26,12,99,100,-8,6] >>> len(word) 8 >>> len(mylist) 6 >>> min(mylist) -8 >>> min(word) 'S' >>> max(mylist) 100 max(word) 'r' sum(mylist) 235 mylist [26, 12, 99, 100, -8, 6] mylist.append('adsfsdaf') mylist [26, 12, 99, 100, -8, 6, 'adsfsdaf'] sum(mylist) Traceback (most recent call last): File "/usr/lib/python3.12/idlelib/run.py", line 580, in runcode exec(code, self.locals) File "", line 1, in TypeError: unsupported operand type(s) for +: 'int' and 'str' help(list.append) Help on method_descriptor: append(self, object, /) unbound builtins.list method Append object to the end of the list. help(list.insert) Help on method_descriptor: insert(self, index, object, /) unbound builtins.list method Insert object before index. mylist [26, 12, 99, 100, -8, 6, 'adsfsdaf'] mylist.remove('adsfsdaf') mylist [26, 12, 99, 100, -8, 6] mylist.insert(1, 500) mylist [26, 500, 12, 99, 100, -8, 6] newlist = [3,4,5] mylist.insert(1, newlist) mylist [26, [3, 4, 5], 500, 12, 99, 100, -8, 6] mylist[0] 26 mylist[1] [3, 4, 5] mylist[3:6] [12, 99, 100] mylist[3:6][0] 12 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/testfor1.py 13 12 11 -8 99 65 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/testfor1.py 13 12 11 -8 99 65 ----------------- 13 12 11 -8 99 65 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/testfor1.py 13 12 11 -8 ----------------- 13 12 11 -8 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/testfor1.py 13 12 11 -8 ----------------- 13 12 11 -8 ----------------- 13 12 11 -8 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/testfor1.py 13 12 11 -8 ----------------- 13 12 11 -8 ----------------- 13 12 11 -8 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/testfor1.py 13 12 11 -8 ----------------- 13 12 11 -8 ----------------- 13 12 11 -8 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/testfor1.py 23 22 21 2 [13, 12, 11, -8] ----------------- 23 22 21 2 [23, 22, 21, 2] ----------------- 23 22 21 2 ----------------- for i in range(5): print(i) 0 1 2 3 4 for i in range(5,10): print(i) 5 6 7 8 9 for i in range(1,100,20): print(i) 1 21 41 61 81 for i in range(0,100,20): print(i) 0 20 40 60 80 for i in range(0,101,20): print(i) 0 20 40 60 80 100 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/wordsloop.py Enter a word to save or quit:Skidm ore Enter a word to save or quit:College Enter a word to save or quit:is Enter a word to save or quit:fun Enter a word to save or quit:in Enter a word to save or quit:the Enter a word to save or quit:summer. Enter a word to save or quit:quit ['Skidm ore', 'College', 'is', 'fun', 'in', 'the', 'summer.'] = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/wordsloop.py Enter a word to save or quit:abc Enter a word to save or quit:123 Enter a word to save or quit:quit ['abc', '123'] abc 123 abc 123 abc 123 import random help(random.choice) Help on method choice in module random: choice(seq) method of random.Random instance Choose a random element from a non-empty sequence. = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/wordsloop.py Enter a word to save or quit:Skidmore Enter a word to save or quit:College Enter a word to save or quit:is Enter a word to save or quit:great. Enter a word to save or quit:quit Skidmore College is great. A random word that you entered is: is = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/numstats3.py Enter a number please.10 Enter a number or q to quit.20 Enter a number or q to quit.15 Enter a number or q to quit.q The largest value you entered is: 20.0 The smallest value you entered is: 10.0 The average of the values you entered is: 15.0 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/prodofodds.py 2027025 1*3*5*7*9*11*13*15 2027025 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/prodofodds.py 2027025 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/product2.py Enter an upper limit (inclusive)10 Odds or Evens (o or e):e 3840 2*4*6*8*10 3840 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/product2.py Enter an upper limit (inclusive)10 Odds or Evens (o or e):o 945 1*3*5*7*9 945 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/countvals.py The number of 3s in the list is 5 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/countvals.py The number of 77s in the list is 3 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/countvals.py The number of 867s in the list is 0 = RESTART: /home/meckmann/2026Summer/cs106/20260707-files/countvals.py The number of 30s in the list is 0 mylist = [3,77,5,3,99,77,3,2,-1,88,77,3,3,4,55] help(count) Traceback (most recent call last): File "/usr/lib/python3.12/idlelib/run.py", line 580, in runcode exec(code, self.locals) File "", line 1, in NameError: name 'count' is not defined. Did you mean: 'count3s'? help(list.count) Help on method_descriptor: count(self, value, /) unbound builtins.list method Return number of occurrences of value. mylist [3, 77, 5, 3, 99, 77, 3, 2, -1, 88, 77, 3, 3, 4, 55] mylist.count(3) 5 mylist.count(77) 3 mylist.count(7776) 0