강의

멘토링

커뮤니티

Inflearn Community Q&A

heatherhyunhyeka8382's profile image
heatherhyunhyeka8382

asked

Learning Algorithm Basics with Python

What is an algorithm?

1.1알고리즘 이란 에서 교환정렬 파이썬으로 바꿀때

Resolved

Written on

·

299

0

  File "C:\Scheduler_project\Algorithm\Algoritm_1.py", line 40, in <module>
    exchange(len(S) - 1, S)
TypeError: exchange() takes 1 positional argument but 2 were given

이렇게 뜨는데요 흠 이게 도대체 왜 안되는걸까요 

algorithm

Answer 1

0

joonion님의 프로필 이미지
joonion
Instructor

40번 줄에서 exchange(S) 로 호출해 보세요.

오타가 좀 많아서 죄송해요... ㅠ.ㅠ;

heatherhyunhyeka8382's profile image
heatherhyunhyeka8382

asked

Ask a question