bev-a-tron / MyFlaskTutorial

A Flask Tutorial for people who don't know any web programming. Actually, it would be helpful to know static HTML, also Python.
342 stars 203 forks source link

There is a fix #20

Closed purnendu23 closed 7 years ago

purnendu23 commented 8 years ago

There is an error in the file:

https://github.com/bev-a-tron/MyFlaskTutorial/blob/master/7_finale.rst

q = app_lulu.questions.keys()[0] #python indexes at 0 a1, a2, a3 = app_lulu.questions.values()[0] #this will return the answers corresponding to q

should be replaced by:

q = list(app_lulu.questions.keys())[0] #python indexes at 0 a1, a2, a3 = list(app_lulu.questions.values())[0] #this will return the answers corresponding to q

otherwise python3 generates an error

bev-a-tron commented 7 years ago

Thanks! I merged your PR.