is it possible to read from stdin ? #1349
-
from the docs, I don't think that this feature is available now ;-( |
Beta Was this translation helpful? Give feedback.
Answered by
Sharktheone
Nov 30, 2023
Replies: 2 comments
-
I think, you can use the python interface and import pythons builtin functions. There should be the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
manatlan
-
I've made : from python import Python
def main():
let sys = Python.import_module("sys")
var py = Python()
for line in sys.stdin:
let g=Grid(py.__str__(line))
print( g.solve() and g.to_string() ) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think, you can use the python interface and import pythons builtin functions. There should be the
input
function available.