파이썬의 turtle 모듈로 막대 그래프를 그려봤습니다. 소스 코드에서 높이를 나타내는 data와 색상을 나타내는 mycolor의 갯수를 맞춰서 변경하면 자동으로 그래프가 변경되도록 했습니다. 막대 그래프의 가로 크기는 width로 설정했습니다. import turtle def drawBar(height): global width # width: 전역 변수에서 선언된 값 t.begin_fill() t.left(90) t.forward(height) t.write(str(height), font = ('Times New Roman', 16, 'bold')) t.right(90) t.forward(width) t.right(90) t.forward(height) t.left(90) t.end_fill() #..