# your code here # your code here ##### Don't modify this cell ##### student_tup = (('21101', '최성훈', '010-1234-4500'), ('21102', '김은지', '010-2230-6540'), ('21103', '이세은', '010-3232-7788')) # your code here # your code here # your code here # your code here ##### Don't modify this cell ##### lst = [10, 30, 40, 50, 30, 30, 20, 20, 20, 10, 30] # your code here import os from google.colab import drive drive.mount('/content/drive') os.chdir('/content/drive/MyDrive/Colab Notebooks') ##### Don't modify this cell ##### import matplotlib.pyplot as plt def plot_tri(XYZ): XYZ.append(XYZ[0]) xs, ys = zip(*XYZ) plt.figure(figsize=(5,5), dpi=100) plt.plot(xs,ys, color='b') plt.scatter(0, 0, color='k', label="origin") plt.xlabel("x-axis") plt.ylabel("y-axis") plt.legend() plt.xlim(-1000, 1000) plt.ylim(-1000, 1000) plt.grid() plt.show() ABC_1 = [[-300, 400], [-140, -800], [835, 847]] ABC_2 = [[-170,40], [-400, -720], [570, -650]] plot_tri(ABC_1) plot_tri(ABC_2) ##### Don't modify this cell ##### ABC = [[-300, 400], [-140, -800], [835, 847]] ABC.append(ABC[0]) xs, ys = zip(*ABC) ABO = [ABC[0], ABC[1], [0,0]] ABO.append(ABO[0]) xs1, ys1 = zip(*ABO) AOC = [ABC[0], [0,0], ABC[2]] AOC.append(AOC[0]) xs2, ys2 = zip(*AOC) OBC = [[0,0 ], ABC[1], ABC[2]] OBC.append(OBC[0]) xs3, ys3 = zip(*OBC) plt.figure(figsize=(5,5), dpi=100) plt.plot(xs,ys, color='k') plt.plot(xs1,ys1, color='b', linestyle=':', alpha=0.3) plt.plot(xs2,ys2, color='b', linestyle=':', alpha=0.3) plt.plot(xs3,ys3, color='b', linestyle=':', alpha=0.3) plt.scatter(0, 0, color='k', label="origin") plt.xlabel("x-axis") plt.ylabel("y-axis") plt.legend() plt.xlim(-1000, 1000) plt.ylim(-1000, 1000) plt.grid() plt.show() # your code here