|
Mar
17 |
|
comment |
Called Method is empty, beginner jGrasp Thank you very much this worked perfectly, I very much appreciate it! |
|
Mar
17 |
|
asked | Called Method is empty, beginner jGrasp |
|
Apr
14 |
|
asked | Python List sorting, sorting dictionaries within a list |
|
Apr
12 |
|
comment |
Find indexes on two lists based on items condition Worked perfectly, thanks much for the help! |
|
Apr
12 |
|
asked | Find indexes on two lists based on items condition |
|
Apr
12 |
|
comment |
Python Calculations, using tuples, lists. Python 2.7 One last question. If I have these two lists: list1 = [3, 3, 1, 0, 3, 0, 3, 0, 0, -3, 0, 5, 3, 0, 1, 0, 0, 5, 3, 0, 0, 0, 0, 1, 0, 3, 0, 1, 0, 0, 3, 5, 3, 3, 0, 0, 0, 5, 0, 5, 0, 3, 3, 0, -3, 0, 0, 5, 1, 5, 3, 0, 3, 0, 0] list2 = [5, 0, 0, 0, 0, 0, 5, 0, 0, 1, 0, 5, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 3, 0, 5, 0, 0, 0, 0, 5, 5, 5, 3, 0, 0, 0, 3, 0, 0, 0, 5, 3, 0, 0, 0, 0, 5, 0, 5, 3, 0, 0, 0, 0] How can I make it so that if the number in list 1 > 0, and the number in list 2 = 0, that I get that index number in list 1. |
|
Apr
12 |
|
comment |
Python Calculations, using tuples, lists. Python 2.7 Thank you it worked perfectly |
|
Apr
12 |
|
awarded | Commentator |
|
Apr
12 |
|
comment |
Python Calculations, using tuples, lists. Python 2.7 One more question actually if this is whats printed, how can I sort through it to find the largest value? [{'Ben': 129}, {'Moose': 194}, {'Reuven': 80}, {'Cust1': 134}, {'Cust2': 88}, {'Francois': 134}] |
|
Apr
12 |
|
comment |
Python Calculations, using tuples, lists. Python 2.7 Never mind, figured it out. Thanks very much for the help! |
|
Apr
12 |
|
comment |
Python Calculations, using tuples, lists. Python 2.7 Okay I figured that out, guess it should have been obvious, heh.How can I get it to compare Name1(the name input) to the whole list of names? |
|
Apr
12 |
|
comment |
Python Calculations, using tuples, lists. Python 2.7 When I try to do either or those two solutions, I get an error: Saying global name 'operator' is not defined. |
|
Apr
12 |
|
asked | Python Calculations, using tuples, lists. Python 2.7 |
|
Apr
12 |
|
comment |
Python, Lists + Dictionaries, Classes? I guess what I need to know to continue is, what is an easy way to multiply all the inputted users ratings with the ratings of all the other users and how would I go about doing so? |
|
Apr
12 |
|
comment |
Python, Lists + Dictionaries, Classes? Okay, got it to work. So now both of the lists are good. Where can I go from here? |
|
Apr
12 |
|
comment |
Python, Lists + Dictionaries, Classes? How could I go about doing this, if I have a list of all the users, and a list of all the ratings? I was never very good with dictionaries. |
|
Apr
12 |
|
awarded | Student |
|
Apr
12 |
|
comment |
Python, Lists + Dictionaries, Classes? I have made the list of tuples for the books correctly but having an issue making the list of tuples of the scores. I do make the tuple, and the user correctly goes with that users scores, but the scores come as a string, how can I fix this? |
|
Apr
12 |
|
comment |
Python, Lists + Dictionaries, Classes? Okay well to start I broke the two files into lists. I made a list of all the books; a list of all the users, and a list of all the ratings. but from there I basically don't have any idea how to move forward. |
|
Apr
12 |
|
asked | Python, Lists + Dictionaries, Classes? |