2 votes
Accepted

PSET6 Similarities (More) 500 Internal Server Error

except for the first element, which is supposed to have no operation, but I gave it an Operation.SUBSTITUTED And this is probably the problem, since that operation subtracts 1 from i and j, which ...
curiouskiwi's user avatar
  • 18.7k
2 votes
Accepted

Problem Set 1 help, clang hello.c, and ls (list)

Ahh I figured it out! Instead of using ~/pset1/hello/ $ go back to just the directory pset by using change directory ~/pset1/hello/ $ cd ~/pset1/ then add your ls command ~/pset1/ $ ls hello/ ...
Georgia van der Zalm's user avatar
1 vote
Accepted

Says that ./hello is a directory and error code when say clang -0 hello hello.c

Problem with your ./hello not working is that there is no hello program to run. There's a folder called hello in that location not a program. And about error in make CAN YOU SHARE THE ERROR CODE OR ...
Aftab Ansari's user avatar
1 vote
Accepted

CS50_Web ORMs,APIs_ lecture 4, classes4.py - Understanding Classes, Objects, Functions and Lists

passengers is a list of Passenger objects, therefore print(self.passengers) is printing a list of Passenger objects. This print(self.passengers.flight_id) would fail because self.passengers is a list ...
DinoCoderSaurus's user avatar
1 vote

How to display python list in index.html ? finance - index.html

Solution {% for stock in stocks %} <tr> <td> {{ stock.symbol }} </td> <td> {{ stock.name }} </td> <td> {{ stock....
wingedRuslan's user avatar
1 vote
Accepted

pset7: why do we need [0] in from of list? (e.g. someData[0]['dic']?)

It's because when you run an SQL query with execute(), all the affected records in the database are returned to you, in an array of dictionaries. So you want the first dictionary in that list. But if ...
ChrisG's user avatar
  • 7,396

Only top scored, non community-wiki answers of a minimum length are eligible