All Questions
5 questions
1
vote
1
answer
391
views
CS50 Finance: Index - list indices must be integers or slices, not str
I've been stuck on this for quite some time. I believe that I'm getting back data in the form of a dictionary but can't figure out how to get the information that I need.
Error messages that have ...
0
votes
1
answer
40
views
Finance Portfolio (index) I can't go on. Need to take to HTML the actual price and total of stock
I am stopped at this part of Finance now.
I can print at HTML the symbol and the sum of the shares... but I don't know how to take the iteration for each symbol to the HTML to know the actual price ...
0
votes
1
answer
57
views
When I go to '/' page for Finance it only shows the cash I have available
I've been struggling for hours with trying to get the '/' page to display the current portfolio. It displays the remaining cash fine but nothing else. On phpliteadmin I can see that the table gets ...
0
votes
1
answer
110
views
pset7: portfolio table gives error
I'm following the instructions in pset7's page, and I have to give users free shares, by inserting a new table in portfolios. However, i get this error:
#1062 - Duplicate entry '1' for key 'PRIMARY'
...
0
votes
1
answer
91
views
For portfolio, only the first digit of a user's cash amount will display
Right now, everything except cash in my portfolio implementation seems to be working well. The cash value, however, seems to report only the first digit of a user's cash balance. (For example, a $10,...