Mar-09-2019, 04:05 PM
It is the comma at the end of line 3. It creates a tuple, which is the immutable (more static) version of a list. Remove that and the value will just be the string.
You get an index error because the tuple is length 1. The ('hello',) notation is to distinguish it from ('hello'), which just evaluates to 'hello'.
You get an index error because the tuple is length 1. The ('hello',) notation is to distinguish it from ('hello'), which just evaluates to 'hello'.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures