Hack Forums
[Python] How to display while loop tuple output in jinja/Python? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] How to display while loop tuple output in jinja/Python? (/showthread.php?tid=6048979)



How to display while loop tuple output in jinja/Python? - Red-Leonard - Feb 12, 2020

I'm trying to display a league table in Jinja template to display on url

here's the Python:

Code
x = 0
            while x < 24:
                x30 = d30['table'][x]
                y30 = x30
                z30 = y30['name']
                print(z30)
                x = x+1

however, getting this to display on url via jinja is proving troublesome

any help would be great , thanks


RE: How to display while loop tuple output in jinja/Python? - Red-Leonard - Feb 13, 2020

no worries, I've fixed it