Skip to content

Instantly share code, notes, and snippets.

View CCLDArjun's full-sized avatar
🏀
yes

Arjun CCLDArjun

🏀
yes
View GitHub Profile
import numpy as np
import sys
import math
class ConnectFour:
def __init__(self, row_count, column_count):
self.row_count = row_count
self.column_count = column_count
expression = input('Enter a simple math expression: ')
if expression.find(' ') == 1:
expression = expression.split()
expression = str(expression[0]+expression[1]+expression[2])
possibleOperations = ['+', '-', '/', '*']
for operation in possibleOperations:
if expression.find(operation) == 1:
if operation == '+':
expression = expression.split(operation)