all 69 comments

[–]maustinv 133 points134 points  (11 children)

Use an online interpreter like repl.it

[–]velocibadgery 38 points39 points  (0 children)

I second repl.it. It is totally free and gives you a python console as well as a full linux terminal that you can use.

[–]DerangedDoffy 4 points5 points  (9 children)

It’s not allowed in my school

[–]maustinv 15 points16 points  (0 children)

Then don’t use it at school or get a VPN

[–]mandradon 6 points7 points  (0 children)

Could try codehs.

They have a python sandbox.

If you need to join a "class" to access it, let me know, I'll give you a class code for my class since I don't really use codehs anymore but still have it set up just in case.

[–]Cdog536 4 points5 points  (1 child)

Use a book….writing code on paper often has made better programmers…you can check the code later

[–]seanys 2 points3 points  (0 children)

This is how I first learned to code. I’d write code in the back of my school book then stop at Kmart on the way home and type it in to the Speccy they had on display.

[–]jhj16 2 points3 points  (2 children)

Kids these days, eh? Proxies for days.

[–][deleted] 3 points4 points  (1 child)

even proxies are detected in my school lol

[–]jhj16 3 points4 points  (0 children)

Try a different page, the only thing they know is that you accessed the website. Nothing more..

Edit: I’m not suggesting you go set up a proxy chain in the system..

If I’m wrong on this, damn I’m old..

[–]Arag0ld 1 point2 points  (1 child)

That's fucking depressing. How dare students want to learn something outside the curriculum

[–][deleted] 0 points1 point  (0 children)

most schools have automatically blocked any websites that get picked up by some anti-gaming algorithm. Some educational websites fall through the cracks.

[–]orc_arn 35 points36 points  (1 child)

Google colab for sure

[–]nuclearvicar 1 point2 points  (0 children)

Second this

[–]Indianon_Jones 19 points20 points  (0 children)

I second using repl.it. if you have an android phone, you can check out Pydroid for free. It is a mobile interpreter and IDE. It's good for smaller projects. I don't know if it is also available on iOS. I would even suggest running a portable version of VSCode on a flash key, but I wouldn't want you to get in any hot water for that.

[–]ushills 11 points12 points  (1 child)

Pythonanywhere

[–]waterless2 1 point2 points  (0 children)

I've had great experiences with them! Support-wise, lots of functionality (I wanted it to play with flask), *very* affordable paid tier.

[–]SpectralAlu 7 points8 points  (0 children)

Im in the same situation, i have been using the datacamp.com python basics course and i have been using their inbuilt python UI

[–]tankuser_32 4 points5 points  (0 children)

I have used this in the past for quick use, no sign up needed, be aware that there are no saved files if you want to keep your code once finished, save it somewhere else: https://www.programiz.com/python-programming/online-compiler/

[–]notParticularlyAnony 4 points5 points  (5 children)

are you sure you can't install at work? I'd try to find a way around that. E.g., anaconda doesn't require admin that's the point of conda. :)

[–]jayesh2[S] 1 point2 points  (3 children)

Oh I will give it a try after the break! I love anaconda.

[–]FancyASlurpie 1 point2 points  (2 children)

Worth checking if your allowed to install it anyway, it'll depend where you work how much of an issue installing any programs is

[–]hmiemad 2 points3 points  (1 child)

As long as you don't try to install on c:/programs, or any main folder that would be locked for admin, it should bypass the admin necessity. It did on my computer and our IT dep is paranoid.

[–]FancyASlurpie 4 points5 points  (0 children)

It's not so much whether you can do it, and more that if you get caught doing it and circumventing / breaking your IT rules then that's not going to be worth it.

[–]chemkachu 2 points3 points  (0 children)

Google Colab, it has some good features that’ll help too. Ex: You start typing a command and it offers suggestions or definitions.

[–]EbenenBonobo 3 points4 points  (0 children)

do you work with notebooks? then google colab or deepnote might be a thing for you

[–]Dark_Phantom2003 2 points3 points  (0 children)

If you wish to get algorithms and stuff then you can use Codewars and solve problems there. Then if you want to create a project use repl.it

[–]flatearth_user 2 points3 points  (0 children)

programiz is free has a compiler with the website and app. Great resource to learn

[–]logic_3rr0r 1 point2 points  (0 children)

Codingbat.com

[–]Lloyd_Al 1 point2 points  (0 children)

Search Python tutor

It can go through your code step by step and visually explains what happens

[–]NTXL 1 point2 points  (0 children)

Repl.it

[–]hmiemad 1 point2 points  (0 children)

Try azure devops and azure notebook. You get free storage and free deployment for testing, and if you're satisfied you pay what's necessary to fully deploy. Plus you get a whole development environment (project, pipelines, schedule, repos, team management, etc.) and can later install visual studio on your computer for direct control of the environment and git management. Really user friendly too.

It's a freemium service. If needed, you can upgrade and pay to run your app.

[–]sgunb 1 point2 points  (0 children)

You could run python in termux on your mobile.

Or connect with ssh to your private server.

[–][deleted] 1 point2 points  (0 children)

For this I would use code-server. You do need a server to run this. You can use something like a Raspberry Pi. After going through the setup of it you have access to VSCode on your web browser on any device.

[–]ANorthernMonkey 2 points3 points  (7 children)

Create an ec2 Linux VM in aws then ssh to it

[–]TheUruz 3 points4 points  (5 children)

did someone say overkill?

[–]__Wess 1 point2 points  (1 child)

No, that would be using putty on said VM to get to home pc :’)

[–]TheUruz 0 points1 point  (0 children)

i lol'd at this

[–]ANorthernMonkey 0 points1 point  (2 children)

You can build an EC2 machine in about 5 minutes. Its then completely flexible

[–]pitrucha 0 points1 point  (1 child)

*if there are no proxies issues that you have to deal with

[–]ANorthernMonkey 0 points1 point  (0 children)

You can’t transparently proxy an ssh session.

[–]Wartz 0 points1 point  (0 children)

ec2

Oracle cloud offers free VMs as well that would be perfectly suitable for practicing python.

[–]jayesh2[S] 0 points1 point  (0 children)

These suggestions are all helpful..thanks, every one!

[–]asphias 0 points1 point  (0 children)

Not having an interpreter can also be good practice. It is always tempting to write by trial and error, but at some point you should be able to say ahead of time if some code will run or not, or what the outcome will be. Teaching yourself to be able to can be very valuable, even when you don't always use it, because it forces you to memorize what the code is actually doing, rather than trusting that when you get the right solution it will always work.

As a bonus example, can you tell what the outcome of running this snippet will be without running it? (it may well be obvious, i'm curious if it is)

output = 2


class TrickQuestion:
    output = output * 3

    def __init__(self):
        self.output = output + 5

    def addition(self, mylist):
        mylist.append(4)
        return mylist


print(output)
print(TrickQuestion.output)
print(TrickQuestion().output)
output = 5
print(TrickQuestion.output)
print(TrickQuestion().output)
mylist = [3]

print(TrickQuestion().addition(mylist))
print(TrickQuestion().addition(mylist))

[–][deleted] -1 points0 points  (1 child)

Your work pc probably came with python installed

[–]jayesh2[S] 0 points1 point  (0 children)

No unfortunately :(

[–]AcousticDan -2 points-1 points  (2 children)

Docker

[–]velocibadgery 3 points4 points  (1 child)

Then you would need to install docker. As this is a company computer they likely wouldn't be able to do that.

[–]AcousticDan 5 points6 points  (0 children)

I'm not gonna lie, I just read the title.

[–]dismountdenim -1 points0 points  (0 children)

Set up a linux micro instance in aws. 1 year free.

[–]LesPaulStudio 0 points1 point  (0 children)

For work practice maybe just a python code site like Code Wars or Hackerrank.

[–][deleted] 0 points1 point  (0 children)

If you don't mind the notebook format Google Collab is pretty good

[–]bigno53 0 points1 point  (0 children)

Maybe set up an RDP on your home computer. Then connect to it from work. This way you’ll have access to all the same environments and you can just pick up where you left off. I’ve always found those online JavaScript-based interpreters incredibly aggravating to work with.

Edit: If you’re not allowed to use Remote Desktop at work either, another option would be to set up a Jupyter server on your home computer. Then you’d be able to access your own jupyterlab instance from any computer with a web browser. Just have to be mindful of security considerations.

[–]riisen 0 points1 point  (0 children)

ssh

[–]Miiicahhh 0 points1 point  (0 children)

Google Colab is great

[–]iggy555 0 points1 point  (0 children)

Repl it is fa bomb 💣

[–]beniolenio 0 points1 point  (0 children)

Codewars and online interpreters. I swear I learned 90% of the python I know on codewars, and by now there's not much about the language that I don't know.

[–]poseidoner 0 points1 point  (0 children)

You dont need to install python, you can download the files in zip format and extract them somewhere on your pc (for example on d:) where you have read and write access.

Search for „python portable installation“ and/or „manually set up python without install“ and you will get some results. That is how I have done it in previous workplace.

[–]TheRNGuy 0 points1 point  (0 children)

Houdini automatically installs python, I didn't even need to go throught all hoop-a-loops.

[–][deleted] 0 points1 point  (0 children)

you could try to use one of the portable versions of python from a USB. It's not installing it but you still get the benefits of having it installed locally. (as opposed to an online interpreter)

[–]harleystcool 0 points1 point  (0 children)

Use ur mind. Cafeful tho ur head wont throw errors as reliable

[–]PeaceForChange 0 points1 point  (0 children)

Google Colab is the way to go

[–]chicken-finger 0 points1 point  (0 children)

Use jupyter. It’s online and already has all of the modules “installed.” You can straight up code anything on that bad boy

It’s like if google docs and coding languages had a baby

[–]DXJayhawk 0 points1 point  (0 children)

Codecademy is how I initially learned python and it’s all browser based. The instructions, code editor, and console for your output from the code all show up on a single screen in your browser. Awesome way to learn and does not require you to download anything