티스토리 뷰

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
댓글
Announcement
Recent Posts
Recent Comments
Total
Today
Yesterday
Link
TAG
more
«   2024/12   »
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 31
Search by month