[Tutor] List of ints

Danny Yoo dyoo at hashcollision.org
Tue Mar 3 10:38:05 CET 2015


On Mon, Mar 2, 2015 at 10:50 PM, Phil <phil_lor at bigpond.com> wrote:
> Thank you for reading this.
> Python 3 under Linux.
>
> I'd like to set up a two dimensional list of counters as follows;
>
> count = [
>             [0],
>             [0],
>             [0]
>         ]
>


Can you explain why the list is two-dimensional?  It's not quite clear
why.  Do you have a particular use case in mind?



> Is there a way to add a value to a list of ints?

Can you give an example of what you'd like to see?  Unfortunately, the
word "add" is too ambiguous to know what the expectations are.  If you
can disambiguate with concrete examples, that may help us.


Good luck!


More information about the Tutor mailing list