online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import random class Platform: countOfPlatforms = 10 def __init__(self): self.position = [] def setPos(self, x, y): self.position = [x, y] def pos(self): return [self.position[0], self.position[1]] def x(self): return self.pos()[0] def y(self): return self.pos()[1] WIDTH = 400 HEIGHT = 533 platformObjects = [] platforms = [] for _ in range(Platform.countOfPlatforms): platform = Platform() randomX = random.randrange(0, WIDTH) randomY = random.randrange(0, HEIGHT) platform.setPos(randomX, randomY) platformObjects.append(platform) platforms.append([randomX, randomY]) print(f"platforms platformObjects\n{'-'*30}") for i in range(Platform.countOfPlatforms): print(f"{str(platforms[i]):13}", platformObjects[i].pos())

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