online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import random def color(code): return f"\33[{code}m" WORDS = ["TRAKTORZYSTA"] word = random.choice(WORDS) so_far = "-" * len(word) l = len(word) + 1 # dla prezentacji guess = "T" new = "" for i in range(len(word)): print(f"{i:2} ", end="") if guess == word[i]: new += guess # prezentacja print(word[:i] + color(31) + f"{word[i:i+1]:{l-i}}" + color(0), f"{so_far[:i+1]:{l}}", new) else: new += so_far[i] # prezentacja print(f"{word[:i+1]:{l}}", f"{so_far[:i+1]:{l}}", new)

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