Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Support for input #19

Closed
360noscope opened this issue Apr 24, 2018 · 3 comments
Closed

Support for input #19

360noscope opened this issue Apr 24, 2018 · 3 comments

Comments

@360noscope
Copy link

360noscope commented Apr 24, 2018

Thanks for supporting on latest question that i asked but i got another question this python sandbox support any input for code?
Exp.
If i run python code below

test = raw_input()
print test 

it should take any string input
then print out that received string input

@christophetd
Copy link
Owner

Unfortunately you can't do that.

@360noscope
Copy link
Author

Ahh ok thanks! i wish i've more time to tinkering it to make it possible 😁

@murtyjones
Copy link
Contributor

I've thought about this a bit and I think your best bet is to run raw_input() piece client-side and use the value given by the user of the program to replace raw_input before sending to the server.

test = raw_input()
print test 

becomes

test = 'i typed this in when running the program'
print test

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants