Python 기초를 위한 Quiz

문자열 연결

1. 빈 공간에 들어갈 문자열은 ?

>>> "Hello" + '_____
'Hello world

답 : world'

2. 실행 결과는 ?

>>> "4" + "4"

답 : '44'

3. 실행 결과는 ?

>>> 1 + "5"

답 : TypeError: unsupported operand type(s) for +: 'int' and 'str'

4. 에러를 발생하는 식은 ?
1) "4" + 'you'
2) '7' + 3
3) "three" + "4"
4) 3 + 2
답 : 2)

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}