from slist import SList if __name__ == '__main__': s = SList() s.insert_front('orange') s.insert_front('apple') s.insert_after('cherry', s.head.next) s.insert_front('pear') s.print_list() print('cherry는 {0}번째'.format(s.search('cherry')))