전체 글
-
함수Python/기초 강의 2022. 7. 24. 23:16
1. 파이썬은 함수 정의를 def로 함 def 함수명(매개변수): .... return 리턴 값 2. 함수의 return값은 언제나 하나이지만 여러개 사용 시 튜플로 return 3. 여러 개의 입력값(*args) 4. 키워드 파라미터(**kwargs) 5. 매개 변수에 초깃값 미리 설정하기 초깃값 설정되면 함수호출 시 생략 가능 6. 매개 변수에 초깃값 설정은 마지막에 적어야 함 출처 : https://www.youtube.com/watch?v=jRsXLEPnd6Q&list=PLU9-uwewPMe2AX9o9hFgv-nRvOcBdzvP5&index=7
-
-
파이썬 튜터유용한 사이트 2022. 7. 19. 23:15
입력한 코드를 한줄씩 시각화하여 보여주는 사이트 https://pythontutor.com/ Python Tutor: Learn Python, JavaScript, C, C++, and Java by visualizing code Learn Python, JavaScript, C, C++, and Java This coding tutor tool helps you learn Python, JavaScript, C, C++, and Java by visualizing code execution. You can use it to debug your homework assignments and as a supplement to online coding tutorials. Related pythontutor.com