Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string = ' Bang! '
- new_str = ' Bang! '
- def who_first(str1, str2):
- result = [i for i in str1 if i != '']
- anode_result = [i for i in str2 if i != '']
- if result == anode_result:
- print('a draw')
- elif result > anode_result:
- print('p1')
- else:
- print('p2')
- who_first(string, new_str)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement