Skip to content

Commit

Permalink
최종
Browse files Browse the repository at this point in the history
  • Loading branch information
so528 committed Feb 7, 2025
1 parent 70e122e commit a8f68ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/racingcar/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def main():

car_names = input("경주할 자동차 이름을 입력하세요."
"(이름은 쉼표로 구분): ").split(",")
car_names = list(dict.fromkeys(name.strip() for name in car_names
if name.strip())) # 들여쓰기 수정
car_names = list(dict.fromkeys(
name.strip() for name in car_names if name.strip()
)) # ✅ 올바른 들여쓰기 수정

for name in car_names:
if len(name) > 5:
Expand Down

0 comments on commit a8f68ff

Please sign in to comment.