We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7964b7 commit 5151027Copy full SHA for 5151027
examples/0002_hello_world.py
@@ -1,12 +1,11 @@
1
import judge0
2
-from judge0 import Flavor
3
4
submission = judge0.Submission(
5
source_code="print('Hello Judge0')",
6
language_id=25,
7
)
8
9
# Instead of relying on the CE flavor of judge0, we can use EXTRA_CE.
10
-judge0.run(client=Flavor.EXTRA_CE, submissions=submission)
+judge0.run(client=judge0.EXTRA_CE, submissions=submission)
11
12
print(submission.stdout)
src/judge0/__init__.py
@@ -85,3 +85,6 @@ def _create_default_client(
85
JUDGE0_IMPLICIT_EXTRA_CE_CLIENT = _create_default_client(
86
Flavor.EXTRA_CE, SuluJudge0ExtraCE
87
88
+
89
+CE = Flavor.CE
90
+EXTRA_CE = Flavor.EXTRA_CE
0 commit comments