Posts by Filipe Machado • 355 points
5 posts
-
0
votes0
answers53
viewsQ: Non-uuid foreign key cannot be implemented
I am creating tables in a Postgre database, in the tables I use UUID as the primary key. For that, I executed: CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; So I created the first table with: DROP…
-
2
votes5
answers821
viewsA: Avoid blank input data
It seems you forgot to close parentheses at the end of each variable assignment, but I guess that’s not what comes to the case. Honestly, I don’t see many alternatives to scrolling through the list…
-
0
votes2
answers213
viewsA: Hexagon Grid - return neighbors
So, I don’t know if you noticed, but the neighbor’s identification is pretty simple, in the case of the chosen cell, the neighbor’s value will always be the value_cell - 5, value_cell - 4,…
-
15
votes5
answers527
viewsA: What is programming logic and computational thinking?
Look, this question is very deep and the answer can be exhaustive, let’s try to summarize it in a way that is quite complementary: Do you know or have heard of Assembly? I’ll put a little bit of…
computer-scienceanswered Filipe Machado 355 -
1
votes3
answers1958
viewsA: How to print list elements in reverse order?
It turns out that in: for i in lista: print(lista[-1]) del(lista[-1]) At each iteration, the last value in the list is deleted, for example, the list will be at the end of all your inserts: [9, 8,…