Skip to content

Instantly share code, notes, and snippets.

@elyosemite
Created August 28, 2019 02:20
Show Gist options
  • Select an option

  • Save elyosemite/1672ecd34b6e0e5b119e81f35b8b2257 to your computer and use it in GitHub Desktop.

Select an option

Save elyosemite/1672ecd34b6e0e5b119e81f35b8b2257 to your computer and use it in GitHub Desktop.
# 3x3 List
bigList = [[1, 2, 3, 5, 3, 9],
[4, 5, 6, 8, 0, 8],
[1, 1, 1, 1, 1, 1],
[7, 8, 9, 3, 2, 7]]
line = 2
flag = True
soma = 0
while flag == True:
for k in range(6):
if (bigList[line][k] % 2) == 1:
soma = soma + bigList[line][k]
print(soma)
flag = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment