Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python AI Functions Practice

인공지능 학습에 필요한 파이썬 함수 기초를 GitHub에 올려 실습할 수 있도록 구성한 저장소입니다.

학습 목표

이 저장소는 다음 내용을 실습 중심으로 익히는 것을 목표로 합니다.

  • 함수 정의와 호출
  • 매개변수와 인수
  • 기본값 매개변수
  • *args, **kwargs
  • 인수 언패킹
  • 함수 객체 전달
  • lambda
  • map, filter, sorted
  • 타입 힌트
  • 모듈과 패키지
  • 클래스와 객체
  • 상속과 super()
  • 예외 처리
  • raise, 사용자 정의 예외
  • finally, with

폴더 구조

python-ai-functions-github-practice/
├─ README.md
├─ requirements.txt
├─ .gitignore
├─ data/
│  └─ sample_students.csv
├─ docs/
│  ├─ github_upload_guide.md
│  └─ worklog_template.md
├─ notebooks/
│  ├─ 01_functions_lambda_functional_api.ipynb
│  └─ 02_modules_oop_exceptions.ipynb
├─ src/
│  └─ practice_utils/
│     ├─ __init__.py
│     ├─ calculator.py
│     ├─ student.py
│     └─ validators.py
├─ exercises/
│  ├─ day01_functions_exercises.py
│  └─ day02_oop_exceptions_exercises.py
├─ solutions/
│  ├─ day01_functions_solutions.py
│  └─ day02_oop_exceptions_solutions.py
└─ tests/
   ├─ test_day01.py
   └─ test_day02.py

빠른 실행

1. 저장소 다운로드 후 폴더 이동

cd python-ai-functions-github-practice

2. 가상환경 생성

Windows PowerShell 기준:

python -m venv .venv
.\.venv\Scripts\Activate.ps1

macOS / Linux 기준:

python3 -m venv .venv
source .venv/bin/activate

3. 패키지 설치

pip install -r requirements.txt

4. 테스트 실행

pytest

실습 순서

  1. notebooks/01_functions_lambda_functional_api.ipynb
  2. exercises/day01_functions_exercises.py
  3. notebooks/02_modules_oop_exceptions.ipynb
  4. exercises/day02_oop_exceptions_exercises.py
  5. pytest로 정답 검증
  6. solutions/ 폴더에서 해설 확인

GitHub 업로드 명령어

git init
git add .
git commit -m "Add Python function practice files"
git branch -M main
git remote add origin https://github.com/YOUR_ID/python-ai-functions-practice.git
git push -u origin main

권장 커밋 메시지

Add Python function practice files
Add OOP and exception practice files
Add pytest validation cases
Update practice README

라이선스

실습용 예제 코드입니다. 자유롭게 수정해서 사용하면 됩니다.

python-ai-functions-practice

About

AI 프로그래밍 학습을 위한 Python 함수, 매개변수, 람다식, 함수형 API, 클래스, 예외처리 실습 저장소 | Practice repository for learning Python functions, parameters, lambda expressions, functional APIs, classes, and exception handling for AI programming.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages