Skip to content

Alternative solution for Q15 #212

@cck181851

Description

@cck181851

I think learning pad function may be helpful and it is more dynamic
A=numpy.zeros([4,4])
print(numpy.pad(A,(1,1),"constant",constant_values=1))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions