online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
def Cookies(cookieList): d = {} for c in cookieList: if c in d: d[c] += 1 else: d[c] = 1 if len(d) < 5: print("Sell more cookies Kate, right away!") return d # This part is just for testing print(Cookies(["Oreos", "Tagalongs", "Oreos", "Oatmeal", "Oreos", "Thin Mints", "Samoas"]))

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue