bounslay

Untitled

Feb 7th, 2023
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. label = input()
  2. rank = int(input())
  3.  
  4.  
  5. if label == 'a' or label == 'c' or label == 'e' or label == 'g':
  6.     if rank % 2 == 0:
  7.         print('light')
  8.     else:
  9.           print('dark')
  10.  
  11. else:
  12.      label == 'b' or label == 'd' or label == 'f' or label == 'h'
  13.      if rank % 2 == 0:
  14.         print('dark')
  15.      else:
  16.           print('light')
Advertisement
Add Comment
Please, Sign In to add comment