Questions tagged [list]

The tag has no usage guidance.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer

PSET 9 Finance - NONETYPE error after querying db

Need help solving this error: File "/workspaces/finance/", line 223, in sell if available_shares < shares: TypeError: '<' not supported between instances of 'NoneType' and 'int' ...
0 votes
0 answers

Finding a list of integers in a list of dictionaries containing strings

I am working on Pset6. I have distilled the matching Short Tandem Repeats found in the DNAsequence down to a list of integers stored in a list variable. What I want to do is locate the presence of ...
0 votes
0 answers

Pset6: Python how to extract a single number as int from a list of strings of numbers

i = 0 sum = 0 sum += number[i] i += 2 It gives me this error: 'int' object is not subscriptable Googled it. Don't understand. What I want to do is add every other number in a credit card number, ...