To print higher-resolution math symbols, click the
Hi-Res Fonts for Printing button on the jsMath control panel.
If the math symbols print as black boxes, turn off image alpha channels
using the Options pane of the jsMath control panel.

jsMath
Lists
last edited on August 13, 2010 07:51 AM by moisher
 Typeset
a1.insert(8,99)
a1 
evaluate
       
evaluate
       
evaluate
       
0
0
evaluate
       
evaluate
       
8
8
evaluate
       
[1, 3, 5, 7, 2, 4, 8, 6, 15, 15]
[1, 3, 5, 7, 2, 4, 8, 6, 15, 15]
evaluate
       
evaluate
       
[1, 3, 5, 7, 2, 4, 8, 6, 15]
[1, 3, 5, 7, 2, 4, 8, 6, 15]
evaluate
       
{1, 2, 3, 4, 5, 6, 7, 8, 15}
{1, 2, 3, 4, 5, 6, 7, 8, 15}
evaluate
       
{1, 2, 3, 4, 5, 6, 7, 8, 15}
{1, 2, 3, 4, 5, 6, 7, 8, 15}
evaluate
       
5
5
evaluate
       
(1, 4, 2, 6, 7)
<type 'tuple'>
(1, 4, 2, 6, 7)
<type 'tuple'>
evaluate
       
[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)
evaluate
       
{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}
evaluate
       
evaluate
       
evaluate
       
9
9
evaluate
       
evaluate
       
[1, 3, 7, 9, 8, 4, 6, 2, 3, 5, 7, 23]
[1, 3, 7, 9, 8, 4, 6, 2, 3, 5, 7, 23]
evaluate
       
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)
evaluate
       

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
evaluate
       
[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]
evaluate
       
2
3
2
3
evaluate
       

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
evaluate
       
[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]