Guest User

First_row

a guest
Feb 25th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1.         first_row = []
  2.         lowest_alien = Alien.aliens[0]
  3.         for alien in Alien.aliens:
  4.             column_x = alien.x
  5.             for ali in Alien.aliens:
  6.                 if ali.x == column_x and ali.y >= lowest_alien.y:
  7.                     lowest_alien = ali
  8.                 first_row.append(lowest_alien)
Add Comment
Please, Sign In to add comment