kuba17ism

5.2

Jan 9th, 2021
688
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tablica = [[11, 22, 33, 333], [44, 55, 66, 666], [77, 88, 99, 999]]
  2.  
  3. parzyste = 0
  4. nieparzyste = 0
  5.  
  6. for i in range(len(tablica)):
  7.     for j in range(len(tablica[i])):
  8.         if tablica[i][j] % 2 == 0:
  9.             parzyste += tablica[i][j]
  10.         else:
  11.             nieparzyste += tablica[i][j]
  12.  
  13. print('Parzyste - {}\nNieparzyste - {}'.format(parzyste, nieparzyste))
  14.  
RAW Paste Data