강의

멘토링

커뮤니티

Inflearn コミュニティ Q&A

tonyjung12191733 のプロフィール画像
tonyjung12191733

投稿した質問数

Python 無料講座 (基本編) - 6 時間で私も開発者

一行for

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

作成

·

355

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>
python

回答 1

0

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

tonyjung12191733 のプロフィール画像
tonyjung12191733

投稿した質問数

質問する