[1, 3, 5, 7, 2, 4, 8, 6, 15]
{1, 2, 3, 4, 5, 6, 7, 8, 15}
{1, 2, 3, 4, 5, 6, 7, 8, 15}
(1, 4, 2, 6, 7) [1, 3, 5, 7, 2, 4, 8, 6, 15]
{1, 2, 3, 4, 5, 6, 7, 8, 15}
{1, 2, 3, 4, 5, 6, 7, 8, 15}
(1, 4, 2, 6, 7) |
{8, 7, 5, 13, 15}
The number of items in a set: 5
Union of two sets: {1, 2, 3, 4, 5, 6, 7, 8, 13, 15}
Set intersections: {1, 2, 4, 6, 7} {8, 7, 5, 13, 15}
The number of items in a set: 5
Union of two sets: {1, 2, 3, 4, 5, 6, 7, 8, 13, 15}
Set intersections: {1, 2, 4, 6, 7} |
Traceback (click to the left of this block for traceback) ... TypeError: remove() takes exactly one argument (2 given) Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_57.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("YTEucmVtb3ZlKDMsMyk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpr4Trhh/___code___.py", line 3, in <module>
exec compile(u'a1.remove(_sage_const_3 ,_sage_const_3 )
File "", line 1, in <module>
TypeError: remove() takes exactly one argument (2 given) |
|
Type: <type 'builtin_function_or_method'> Definition: a1.extend( [noargspec] ) Docstring: L.extend(iterable) -- extend list by appending elements from the iterable Type: <type 'builtin_function_or_method'> Definition: a1.extend( [noargspec] ) Docstring: L.extend(iterable) -- extend list by appending elements from the iterable |
[1, 3, 7, 9, 8, 4, 6, 2, 3, 5, 7, 23, 1, 4, 2, 6, 7] [1, 3, 7, 9, 8, 4, 6, 2, 3, 5, 7, 23, 1, 4, 2, 6, 7] |
|
Type: <type 'builtin_function_or_method'> Definition: a1.insert( [noargspec] ) Docstring: L.insert(index, object) -- insert object before index Type: <type 'builtin_function_or_method'> Definition: a1.insert( [noargspec] ) Docstring: L.insert(index, object) -- insert object before index |
[1, 3, 7, 9, 8, 4, 6, 2, 99, 3, 5, 7, 23, 1, 4, 2, 6, 7] [1, 3, 7, 9, 8, 4, 6, 2, 99, 3, 5, 7, 23, 1, 4, 2, 6, 7] |