Forum: Python Feb 22nd, 2009 |
| Replies: 7 Views: 494 you could just do
print "The location of the largest number is", (1+l1.index(max(l1))
or something similar |
Forum: Python Feb 20th, 2009 |
| Replies: 7 Views: 494 It would help if you wrapped your code in [CODE ] [/ CODE] tags |
Forum: Python Jul 7th, 2008 |
| Replies: 4 Views: 501 it is equal to 15 because you are passing b_var to the function
c_var = a_func(b_var)
you are getting mixed up between the a_var in the function and the other a_var |