[Python/Hackerrank] Strings > Mutations
Mutations We have seen that lists are mutable (they can be changed), and tuples are immutable (they cannot be changed). Let's try to understand this with an example. You are given an immutable string, and you want to make changes to it. Example >>> string = "abracadabra" You can access an index by: >>> print string[5] a What if you would like to assign a value? >>> string[5] = 'k' Traceback (mos..
Programming/Python
2021. 12. 8. 14:30
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 대원화성
- 리비안
- string
- hackerrank
- tensorflow
- 넥스트BT
- python3
- python
- 넷플릭스
- MS SQL Server
- 코로나19
- 미중무역전쟁
- insert
- 몰누피라비르
- DATABASE
- SQL Server
- Weather Observation Station
- TSQL
- 분석탭
- Tableau
- MSSQL
- 테슬라
- 매매일지
- mysql
- HK이노엔
- list
- 경구치료제
- 동국알앤에스
- 에코캡
- 해커랭크
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
글 보관함