Code: Select all
default unit_list = ["A", "B", "C"]
screen show_the_list:
vbox:
text "First, there's" + unit_list[0]
text "Then, there's" + unit_list[1]
text "And finally, there's" + unit_list[2]
I can put a line:
Code: Select all
$ unit_list = ["B", "C", "A"]
Code: Select all
$ unit_list.insert(0, unit_list.pop)
Code: Select all
$ unit_list.insert(0, unit_list.pop)
pause
show screen show_the_list
"coercing to Unicode: need string or buffer, instancemethod found