Ask Your Question

Revision history [back]

When you type:

sage: w = Word(["A","B","C","D"])                                                                                                                                                                            
sage: w                                                                                                                                                                                                      
word: ABCD

what you get is the representation of the word w, you cant turn it into a string as follows:

sage: str(w)                                                                                                                                                                                                 
'ABCD'