Questions tagged [python3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Question On Classes Repetition (Python)

possible_moves = actions(current_node.value) for moves in possible_moves: Added_Node = Node() Added_Node.value = result(current_node.value, moves) self.frontier.append(Added_Node) ...
0
votes
1answer
24 views

How to get a specific date from a json file in Python?

So I have to get data from 2021 from this website which I am able to but I am unable to get the data from 2021. The following is the code I wrote that gets the dates: for d in data: ...
0
votes
1answer
4 views

default relative Imports in Django wiki failing

In views.py, when initially running the pregenerated line from . import util failed with relative import error. The standard from .dir import package also failed. Deleting __init.py__ also has no ...
0
votes
0answers
25 views

Pset8 Finance won't pass values to index.html

I have tried like every combination and there is no error but Jinja won't pass any value to my index.html. Running the SQL on the DB gives the correct answer! And I See a Table with head and foot etc ...
0
votes
0answers
229 views

jinja2.exceptions.UndefinedError

Hi all I am trying to get an app to work and i keep on getting an error jinja2.exceptions.UndefinedError jinja2.exceptions.UndefinedError: 'data' is undefined here is my code it would be great is ...
0
votes
0answers
34 views

Minesweeper says it is making a safe move but chooses a mine

Minesweeper says it is making a safe move but chooses a mine. It also makes random moves even though there are safe moves it can make. I don't know why it does that. This is the link to my code below. ...
1
vote
1answer
142 views

How do correct I correct the pylint(no-member) error I get in the Web Flight lesson

Class Flight(models.Model): origin = models.ForeignKey(Airport, on_delete=models.CASCADE, related_name="departure") destination = models.ForeignKey(Airport, on_delete=models.CASCADE, ...