티스토리 뷰
garbled = "IXXX aXXmX aXXXnXoXXXXXtXhXeXXXXrX sXXXXeXcXXXrXeXt mXXeXsXXXsXaXXXXXXgXeX!XX" message = filter(lambda x: x!="X", garbled) print message #I am another secret message!
letters = ['A', 'B', 'C', 'D', 'E']
print letters[::-1] #Output: ['E', 'D', 'C', 'B', 'A']'IT > Python: Codecademy' 카테고리의 다른 글
| 11 Introduction to Classes (0) | 2018.03.10 |
|---|---|
| Sec10: bit calculator (0) | 2018.03.08 |
| 9 Exam Statistics (0) | 2018.03.06 |
| 8 Loop (0) | 2018.02.28 |
| 7 Lists and Functions (0) | 2018.02.26 |
댓글