Multidimensional Array - Python 3.3

preview_player
Показать описание
Show your students how to program a multidimensional array for Computer Science GCSE. You will be able to see how to carry out this function.
Рекомендации по теме
Комментарии
Автор

thank you, doing computing coursework and helped a lot :)

nathanhatch
Автор

class
Hi, on this video you show a very easy example. Can you post a complete multidimensional array class as the following for example:

__slots__ = [‘__dimensions’, ’__factors’, ’__data’]
def __init__(self, *dimensions):
def getOffset(self, indices):
def __getitem__(self, indices):
def __setitem__(self, indices, value):
def __str__(self):
def __init__(self, *dimensions):

Thank you for the video.

revolution
Автор

such a loud keyboard xD but thanks for the help on the syntax! now to the complex part of getting galactic distances..

Kevy_G
Автор

how do yo know names2 is position 1, and how do you know John is position 1?
if I as trying to get there, I would have guessed [2][2]??

please explain to me if you can, thanks in advance.

krook
join shbcf.ru