Posts by João Paulo Blume • 53 points
5 posts
-
-2
votes1
answer39
viewsQ: Calculate the product within a for loop
I need to calculate the product of 3 numbers inside a loop for, but the code I made is going wrong, multiplying something bizarre that I couldn’t even understand, for example, if I input 1, 1, 1, it…
-
0
votes1
answer228
viewsQ: Page not found(404) - polls views Django tutorial
I’m doing the Django documentation tutorial in part 3 (https://docs.djangoproject.com/en/3.1/intro/tutorial03/) where it is said after adding some codes the following: "Take a look in your browser,…
-
1
votes1
answer37
viewsQ: Create loop and move to arguments of a function?
I have the following code in Python: storage.tableWidget.setColumnWidth(0, 30) storage.tableWidget.setColumnWidth(1, 140) storage.tableWidget.setColumnWidth(2, 90)…
-
1
votes0
answers41
viewsQ: Python syntax {%-- %}
Good evening, I’m doing the tutorial of Django’s documentation and I came across this code: {% if latest_question_list %} <ul> {% for question in latest_question_list %} <li><a…
-
2
votes4
answers669
viewsQ: How to access indexes backwards within a list?
I’m taking the notes that make up the triads of the major chords. For this, I created a list of all possible notes, and according to the chord typed I see the list looking for the first largest,…