#๐Ÿ”’ Another kinda simple question lol

19 messages ยท Page 1 of 1 (latest)

zenith willowBOT
#

@brisk light

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

brisk light
#

so far i have:

#

if row in enumerate(pattern_2d):
pattern_2d[m][n]
sum = (m + n + 3)

#

which outputs:

#

0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0

#

e!

#

!e

zenith willowBOT
#
Missing required argument

code

brisk light
#

!e if row in enumerate(pattern_2d):
pattern_2d[m][n]
sum = (m + n + 3)

zenith willowBOT
brisk light
#

!e grid_size = int(input())

pattern_2d = []
for m in range(grid_size):
row = []
for n in range(grid_size):
row.append(0)
pattern_2d.append(row)

if row in enumerate(pattern_2d):
pattern_2d[m][n]
sum = (m + n + 3)

for row in pattern_2d:
for cell in row:
print(cell, end=' ')
print()

zenith willowBOT
brisk light
#

i have figured it out

#

Another kinda simple question lol, uf someone can help me understand this better then the site does

#

so for m in range(grid_size):
for n in range(grid_size):
pattern_2d[m][n] = (m + n + 3) was correct. i still dont understand why though

zenith willowBOT
#

@brisk light

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ Another kinda simple question lol, uf someone can help me understand this better then the site doe

zenith willowBOT
#

@brisk light

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.