Proper way of showing table/set/tuple/etc.
Posted: Fri Aug 24, 2018 7:08 am
http://thomas-cokelaer.info/tutorials/p ... tures.html
So, Python stores string value in unicode form like: u'stringhere'
All elements appended to list are in such form.
When I try to print table content like this "[listname[0]]" everything is ok. EDIT: unless out of range...
But when I try to print whole list like this "[listname]" i have all elements with damn u'' included.
On top of that SET data structure can't (reliably) be IMHO printed like "[setname[0]]"
So, my question are:
1. How to print ONE (specific) element of the given data structure during dialog.
2. How to print ALL elements of the given data structure during dialog.
3. How to print such element(s) outside the dialog. Just on the screen at given position.
So, Python stores string value in unicode form like: u'stringhere'
All elements appended to list are in such form.
When I try to print table content like this "[listname[0]]" everything is ok. EDIT: unless out of range...
But when I try to print whole list like this "[listname]" i have all elements with damn u'' included.
On top of that SET data structure can't (reliably) be IMHO printed like "[setname[0]]"
So, my question are:
1. How to print ONE (specific) element of the given data structure during dialog.
2. How to print ALL elements of the given data structure during dialog.
3. How to print such element(s) outside the dialog. Just on the screen at given position.