Nathan Zilora
hacker

@21natzil (524)
A repl.it discord and repl talk moderator! I love bit manipulation and I'm interested in cyber security and data science.
The Repl.it Chrome Extension 🌐
posted to Announcements by jajoosam
4

Looks awesome, maybe porting to Firefox next?

Array doubt
posted to Ask by Lanna
4

What an array, or list means, greatly depends on the language. Let's say we're talking about python. Lists are, lists, simple as that. But if someone says array, they could actually mean a list, and their just calling it that because they come from another language. Or, they actually are talking about arrays, and are most likely talking about numpy.array. NumPy is a very popular module for doing complex math in python, and people that use numpy pretty much always use it's array class. I hope this helps clear up some confusion!

(SOLVED) [Pygame][Audio Mixer] "No available audio device"
posted to Ask by ETHANSIAO
3

Sorry, but audio players of any kind are not support. Don't fret however, this is something that's planned and will be included eventually.

Python Graphics and Stuff
posted to Ask by DavidClone
3

Yep, you should be able to use it in any browser. For a pygame repl, click here. For a tkinter repl, click here

Game Jam FAQ
posted to Challenge by katyadee
3

I want to use a project but it would require installing a lot of extra libs. Is this possible to use in repl.it https://github.com/renpy/renpy#compiling-the-modules and how would I use it.

Is it possible to use python's socket library in repl.it?
posted to Ask by ETHANSIAO
2

Yes, and no. Yes you can create sockets, and they will behave normally. The problem with your code is that you're using gethostname. Replace that with "0.0.0.0" which means it will bind to the computer, but be accessible externally. The reason I say no, is that whenever you open a socket and bind it to the repl, repl.it is tricked into thinking you started an HTTP server (A web server). It will then start requesting your website, which may cause issues with your code. It will also convert any request other people made to the repl into HTTP.

Root password for shell
posted to Ask by aksubacct
3

Repl.it users can't access root, sorry 😓

Python or not? please any information would do.
posted to Ask by bion0
5

Python is a great language, but choose whatever you want! Each language has it's own advantages and disadvantages. If you like Python, go for it. But if you want to try any other languages, that's perfectly fine too.

New *Action* lib! Persistent gevent scheduler!
posted to Share by 21natzil
2

@amasad Nice, will merge right now!

How do you get a job at Repl.it
posted to Ask by AzureScripts
2

Maybe this can help: https://repl.it/site/jobs

Python GUI
posted to Ask by dylanharding33
4

Remi is a library that acts like a GUI, and has similar syntax. However, it makes a website that have the GUI on it, instead of opening a window. This works great with repl.it! I should note, despite what the repository says, it doesn't work on firefox, however it's perfectly fine with chrome.

Game Tutorial: Canyon Runner
posted to Learn by ericqweinstein
4

This is a great game! However it's had it's time under the sun. I hope everyone enjoyed this project, because I know I did! Anyways, I'll be unpinning this now, but that doesn't mean you can still find it! Thanks @ericqweinstein for this amazing game!

SQLite Browser
posted to Ask by mrletts
2

Great idea, I would advise you to put this on https://repl.it/feedback for a quick response. Keep in mind, as of now, repl.it does a lot of things that can corrupt sqlite files. I would suggest using :memory: as the file path when teaching SQLite. This way it will create a database in memory and not write to a file.

Role Play Game
posted to Share by HarryCarnell
3

We would love to help! However the repl you provided doesnt have any code. If you comment a link to the repl you're using, we'd be glad to help you.

Connecting repl.it to a GitHub repo?
posted to Ask by CaptainAnon
3

Not at the moment, however don't worry! This feature is planned and being developed as we speak.

First Official Repl.it Art: MULTIPLAYER
posted to Announcements by amasad
3

Looks really sweet!

random.choice() not working properly. (Python)
posted to Ask by Aloeb83
3

You forgot to add end quotes to each option. It should be ['Short pass', 'Long Pass', 'Run']. Good luck on your project!

Integer and Algebra calculator
posted to Share by IEATPYTHON
3

Nice, well done guys!

Can Repl.it substitute a code editor like PyCharm?
posted to Ask by LeonGrin
3

Your IDE doesn't prevent you from learning important skills used in the work force, so by all means, continue with repl.it! If a work place requires a certain text editor or IDE then that's fine, but you'll still be able to use the skills you've gained from repl.it

Import code files to repl
posted to Ask by PaulLeger
3

You can upload files from your computer into a repl, and then have your students fork the repl, so each receives the same copy.

I made Tetris in a python terminal and its as bad as you think (need help with flickering screen)
posted to Share by K4JINX
3

This is really cool! If repl.it were to increase the speed of the screen clearing, it would work perfectly. Try this in you're computer's console, and replace replt.clear with os.system("cls") if on windows, and os.system("clear") for linux.

Weekly Repls #22
posted to Announcements by 21natzil
2

@theangryepicbanana The the game Vandesm14 made, I don't explicitly call it that

SOLVED: Why does this say it's invalid syntax?
posted to Ask by JAGMAN248
2

On line 66, you forgot to end it with a second ). Tip: If you can't find the issue with the current line in syntax errors, look at the couple of lines before it.

IF CONDITION ISSUE
posted to Ask by Lanna
2

In Python, = is used to define variables. What you want to do is compare variables, which is ==.

Import other repls!
posted to Share by 21natzil
2

@JayBFC you got it 😉

How to include a display for pyGame in repl?
posted to Ask by MaxwellArchibal
2

Sorry, but pygame is not supported. If you wish to create some form of GUI, you should checkout the remi project

Not a coding question (for once)
posted to Ask by FARHEENPALAGIRI
2

What about "12.43".split(".")[1][0]?

Find The Mean Of A List Of Numbers
posted to Share by DanielSchumache
2

@DanielSchumache Oh right, I assumed you might want to use it more. But great job, I really enjoyed it :P

Find The Mean Of A List Of Numbers
posted to Share by DanielSchumache
2

You can use the built-in len function to get the length of a list. len(my_list)