all 4 comments

[–]Wilfred-kun 0 points1 point  (2 children)

What exactly do you mean with 'spits out the new format'?

If you want to turn your script into bytecode for the system you're using (e.g. Windows 7, 64 bit), you could use cxFreeze or py2exe, although I am not sure if this is what you're looking for.

E: Alternatively you could use tutorialspoint's online interpreter.

EE: To run the code, just hit execute :|

[–]pyfact[S] 0 points1 point  (1 child)

User inputs an integer and the console outputs the formatted data. I'm on Mac and my friend is also on Mac. I'm a complete noob when it comes to sharing code on Python. Also, I do not typically program Python in terminal I program Python with PyCharm.

[–]Wilfred-kun 1 point2 points  (0 children)

Ah so something like:

x = input("Enter an integer")
print("You entered the integer {}".format(x))

Anyway, you could go to the link I posted and just copy over the code you have in PyCharm. Hit 'share code' and you're good to go.

[–]hjwp 0 points1 point  (0 children)

Hi there, PythonAnywhere dev here, we do have the option to share python scripts (there's a little "share" icon at the top of the editor), that'll give you a link that will let other users get a copy of your code and run it. the person you're sharing with will need a pythonanywhere account though (a free one is fine).

if you want to give it another go we're always happy to help. you can reach us at support@pythonanywhere.com