Python/Python with Error
[해결 방법] SyntaxError: unexpected EOF while parsing
HJ0216
2023. 8. 5. 20:49
728x90
👉 기본 환경
- Language: Python
- IDE: Replit
⌨️ 코드
1
2
|
print(("New lines can be created with a backslash and n.")
|
🖨️오류
SyntaxError: unexpected EOF while parsing
📡 원인
괄호의 짝이 맞지 않음: ( - 2개, ) - 1개
📰 해결 방법
1
2
|
print("New lines can be created with a backslash and n.")
|
괄호의 짝이 맞도록 수정: ( - 1개, ) - 1개
728x90