시작하기무료로 시작하기

Claude Code 시작하기

여러분은 음악 분석 플랫폼을 개발하는 새로운 팀에 합류한 개발자입니다. 동료가 Claude Code를 사용하면 낯선 코드베이스를 빠르게 파악하는 데 도움이 된다고 알려주었습니다.

프로젝트 디렉터리에는 다음 함수가 포함된 analytics.py 파일이 있습니다:

def calculate_album_stats(albums, min_tracks=5, multiplier=1.2):
    """Process album data and return statistics for qualifying albums."""
    output = []
    for album in albums:
        track_count = album.get('track_count', 0)
        if track_count > min_tracks:
            adjusted_popularity = album.get('popularity', 0) * multiplier
            tier = 'platinum' if adjusted_popularity > 80 else 'gold'
            output.append({
                'album_id': album['album_id'],
                'title': album['title'],
                'original_popularity': album.get('popularity', 0),
                'adjusted_popularity': adjusted_popularity,
                'tier': tier
            })
    return sorted(output, key=lambda x: x['adjusted_popularity'], reverse=True)[:5]

참고: 본인의 컴퓨터에 Claude Code를 설정하는 방법은 설정 가이드를 확인하세요.

이 연습은 강의의 일부입니다

Claude Code로 배우는 Software Development

강의 보기

연습 안내

  • claude 명령어로 Claude Code를 시작하세요.
  • Claude에게 analytics.py의 calculate_album_stats() 함수를 설명해 달라고 요청하세요.
  • 탐색을 마쳤다면 /exit를 입력해 Claude Code를 종료하세요.

실습형 인터랙티브 연습문제

이론을 실습으로 바꾸는 인터랙티브 연습 중 하나를 만나보세요

연습 시작