[Python Examples] sorted(), sorted(x, reverse)
[Python Examples] sorted(), sorted(x, reverse) 포스트 난이도: HOO_Intern [Notice] 포스트 난이도에 대한 설명 안녕하세요, HOOAI의 Henry입니다. Bro들의 질문에 대한 내용을 우선적으로 포스팅이 되다 보니 각각의 포스트에 대한 난이도가 달라서 난이도에 대한 부분을 작성하면 좋겠다는 의견을 들었습니다 whoishoo.tistory.com # Example Codes x = (55, 33, 22, 77) y = ("James", "Amy", "Carl", "Alex") sort_num = sorted(x) sort_str = sorted(y) print(sort_num) print(sort_str) # reverse sort_num_rev = so..
2022. 3. 17.
[Python Example Codes] Pyplot: Single Axes 구현, 단일 그래프
Pyplot: Single Axes 구현, 단일 그래프 포스트 난이도: HOO_Junior [Notice] 포스트 난이도에 대한 설명 안녕하세요, HOOAI의 Henry입니다. Bro들의 질문에 대한 내용을 우선적으로 포스팅이 되다 보니 각각의 포스트에 대한 난이도가 달라서 난이도에 대한 부분을 작성하면 좋겠다는 의견을 들었습니다 whoishoo.tistory.com # Example Codes import matplotlib.pyplot as plt fig, ax = plt.subplots() #single axes 구현 ax.plot([1, 2, 3, 4, 5], [5, 4, 1, 3, 6]) # x값, y값 데이터 입력 plt.show() #보여주기 sub Matplotlib에서 간단하게 singl..
2021. 12. 12.