Skip to content

Instantly share code, notes, and snippets.

import unittest
import os
import solution
import shutil
CLASSES_FILE = """
class A:
def ExOh(str):
str = str.lower()
return str.count('x') == str.count('o')
def ABCheck(str):
str = str.lower()
next_a = -1
next_b = -1
for position, letter in enumerate(str):
if position == next_a and letter == 'a' or position == next_b and letter == 'b':
return True
if letter == 'a':
def dashInsert(num):
new_str = ''
previous_is_odd = False
for number in str(num):
if int(number)%2 == 1:
if previous_is_odd:
new_str += '-'
previous_is_odd = True
else:
def ExOh(str):
return str.count('x') == str.count('o')