• 카테고리

    질문 & 답변
  • 세부 분야

    프로그래밍 언어

  • 해결 여부

    미해결

마지막 에러가 뜨네요 뭐가 문제일까요?

21.02.11 17:42 작성 조회수 234

0

students = ["Iron man""Thor""I am groot"]
 students = [i.upper() for i in students]
 print(students)
File "c:/Users/정태원/Desktop/Pythonworkspace/practice.py", line 10 students = ["Iron man", "Thor", "I am groot"] ^ IndentationError: unexpected indent PS C:\Users\정태원\Desktop\Pythonworkspace>

답변 1

답변을 작성해보세요.

0

katherine님의 프로필

katherine

2021.02.21

2번 째 줄의 students와 print가 한 칸 들여쓰기 되어서 그런 것 같습니다. 파이썬은 들여쓰기 규칙이 매우 엄격해서요~!