Skip to content

Instantly share code, notes, and snippets.

@mr-katsini
Created October 19, 2018 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mr-katsini/c509ccb0911ee24fff4af18f5b3c8cbf to your computer and use it in GitHub Desktop.
Save mr-katsini/c509ccb0911ee24fff4af18f5b3c8cbf to your computer and use it in GitHub Desktop.
Print the chinese mafia in the terminal.
mafia = 2
left = '(-.'
right = '.-)'
left_side = ""
right_side = ""
for i in range(0, mafia):
left_side = "{}{}".format(left_side, left)
right_side = "{}{}".format(right_side, right)
print("{}(-.-){}").format(left_side, right_side)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment