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. ====== RESTART: /home/meckmann/2026Summer/cs106/20260730-files/Fraction.py ===== ====== RESTART: /home/meckmann/2026Summer/cs106/20260730-files/Fraction.py ===== from Fraction import Fraction f1 = Fraction(1,3) f2 = Fraction(1,2) f3 = f1 + f2 print(str(f1)) 1 / 3 print(str(f2)) 1 / 2 print(str(f3)) 5 / 6 print(f1) 1 / 3 ==== RESTART: /home/meckmann/2026Summer/cs106/20260730-files/readandwrite.py === ==== RESTART: /home/meckmann/2026Summer/cs106/20260730-files/readandwrite.py === ==== RESTART: /home/meckmann/2026Summer/cs106/20260730-files/readandwrite.py === ===== RESTART: /home/meckmann/2026Summer/cs106/20260730-files/readwrite2.py ==== ===== RESTART: /home/meckmann/2026Summer/cs106/20260730-files/readwrite2.py ==== 'B' > 'A' True 'C' >= 'A' True 'A' >= 'A' True 'Z' >= 'A' True 'a' > 'A' True 'a' <= 'Z' False ===== RESTART: /home/meckmann/2026Summer/cs106/20260730-files/readwrite2.py ==== There were 202 capitalized words in the file. ====== RESTART: /home/meckmann/2026Summer/cs106/20260730-files/Fraction.py ===== from Fraction import Fraction f1 = Fraction(1,3) f2 = Fraction(1,2) f3 = f1 / f2 print(f3) 2 / 3 import random random.randint(1,3) 2 random.randint(1,3) 1 random.randint(1,3) 3 random.randint(1,3) 1 random.randint(1,3) 3 random.randint(1,3) 1 random.randint(1,3) 3 random.randint(1,3) 1 print() print('Hello') Hello print('Hello','Skidmore!') Hello Skidmore! print('Hello','Skidmore!', sep='#') Hello#Skidmore! help(random.randint) Help on method randint in module random: randint(a, b) method of random.Random instance Return random integer in range [a, b], including both end points. random.randint(1) 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: Random.randint() missing 1 required positional argument: 'b' random.randint() 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: Random.randint() missing 2 required positional arguments: 'a' and 'b' random.randint(4,7) 4 random.randint(4,7,9) 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: Random.randint() takes 3 positional arguments but 4 were given for i in range(0,200,10): ... print(i) ... ... 0 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 for i in range(10): print(i) 0 1 2 3 4 5 6 7 8 9 help(random.random) Help on built-in function random: random() method of random.Random instance random() -> x in the interval [0, 1). random.random() 0.520742267656148 random.random(5) 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: Random.random() takes no arguments (1 given) from playing_cards import Card c = Card(1,0) c.get_rank() 1 c.set_rank(10) c.get_rank() 10