题解 | #单词的字母#
单词的字母
https://www.nowcoder.com/practice/33452346ae854b468bbcfdc2ef2e4a46
def main(): try: lists = ['P', 'y', 't', 'h', 'o', 'n'] r1 = lists[3] r2 = lists[len(lists)-4:len(lists)] print(r1) print(r2) except Exception as e: print(str(e)) if __name__ == '__main__': main()