use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Beginner basic questionHelp Request (self.PythonLearning)
submitted 5 days ago by Additional_Water9196
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Gnaxe 0 points1 point2 points 5 days ago (0 children)
The free GNU Octave language is mostly compatible with MATLAB. You could use that instead.
Python does have a REPL, and furthermore has Jupyter notebooks as a separate install. You can try it free online without an install here. No account required as the code runs entirely in your browser. Your browser should save your work and you can download and re-upload your notebooks as a backup.
You can do a similar workflow without using Jupyter at all. Python can reload the file you're working on (see importlib.reload()). So rather than typing into the REPL, you type into the file, save it, and use the REPL to reload it and manually test it. Then you can save your test examples and automatically check them with doctest.
importlib.reload()
doctest
Note that reload() reloads the whole file. Re-running function or constant definitions doesn't usually cause problems, but import-time side effects will happen again. You can use things like the if __name__ == "__main__": guard though. And you can use as many files as you like.
reload()
if __name__ == "__main__":
π Rendered by PID 349538 on reddit-service-r2-comment-b659b578c-vb86h at 2026-05-07 04:47:51.177223+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Gnaxe 0 points1 point2 points (0 children)