Advent of Code Sponsorship
posted to Announcements by 21natzil


How does AoC work?

Each problem will have an input, which will be some text containing a list of numbers or words or other characters. The values will be different for every user. You will need to write a program to process these as the puzzle says, and output a single short answer.
Check out the 2019 questions if you want some examples!

Where do we solve the problems?

In a repl of course!

How does the website get our answers?

The answer will be a single number or word or string of characters. The website can easily check if it's correct, by processing the input itself.

How does it time how long it takes?

It just times how long from when the problem is released to when you submit a correct answer.

Weekly Challenge #17

@Codemonkey51 lmao you used recursion idot

Export Files
posted to Ask by HarveyH

You can already do this:

  • Next to the Add file and Add folder buttons, there's a little menu button
  • Click that and click Download as zip

I hope you found this comment helpful
Upvote for vee freebucks!

What does fork do?
posted to Ask

Forking someone else's repl creates a copy of the repl in your account, which you can edit. Although this is very good if you want to, for example, improve someone else's code, you musn't fork someone else's repl and claim it as your own, and it's always good to put in the repl's description that it's a fork of someone else's.

Hope you found this comment helpful
Upvote for vee freebucks!

Introducing Replpedia
posted to Share by PDanielY

lmao, has existed for months and has more content and memes than this will ever have.

Chat on the terminal
posted to Tutorials by jajoosam

Hey! Nice tutorial but a few issues:
Firstly, it doesn't work, in that messages you send aren't actually posted. Easy fix: replace

rl.question("» ", (answer) => {
    // "» " Gives a prompt for the user
    socket.emit("message", buffer);


rl.question("» ", (answer) => {
    // "» " Gives a prompt for the user
    socket.emit("message", answer); // <-- There - replace buffer with answer!

and it should work fine!

Also, if you want it to display who posted the message, change socket.emit("message", answer); to socket.emit("message", id+": "+answer);

Awesome tutorial though, I'm no good with JS so I would never have been able to create something like this without a tutorial!

My chatroom

Password Vault! #WEEKLY
posted to Share by minx28

@Bookie0 hehehehehehe yes you should certainly put your passwords here absolutely 100%

posted to Ask by StrawBester


from flask import Flask
from threading import Thread


def index():
    return "<h1>Bot is running</h1>"

Brute Force Password Cracker
posted to Share by CyanCoding

Hi! This is a cool project and I really like the use of colour. However, in places, there are major issues with the code: in under 10 minutes, I cut your 323 lines of code down to 259, with several lines becoming much shorter and easier.
The key to this is the string module:

import string

This module has several highly useful constants:

!"#$%&\'()*+,-./:;<=>[email protected][\\]^_`{|}~
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>[email protected][\\]^_`{|}~

I went through your code and replaced instances of "abcdefghijklmnopqrstuvwxyz" with string.ascii_lowercase for example.
The other thing I did was the section where you detect if certain groups of characters are in the password. You did

if "A" in password or "B" in password...

I changed this to

if any([char in password for char in string.acii_uppercase]):

The any function requires a list and if any of the items in the list are True, it returns True. The [char in password for char in string.acii_uppercase] creates a list: each item is True of False, depending on whether each character in string.ascii_uppercase is in the password. This means that if any of the upper case letters are in the password, our any() returns True. I did the same thing with the lowercase, digits and punctuation bits, the punctuation one being particularly satsisfying because previously you had individual if statements for each separate character.
Hope you found this comment useful, please upvote!

Weekly Challenge #18

Will the inputs be case sensitive? If so, how should case be sorted? Should it be abAB or aAbB etc?

Local Time (Clock)
posted to Share by SharpCodeDev

The const h1 should be defined outside of the function. This will also make it insignificantly faster :)

#WEEKLY Fibonacci Sequence!
posted to Share by CodingCactus

@CodingCactus bruh srsly nobody cares that someone was the first upvoter

#WEEKLY Fibonacci Sequence!
posted to Share by CodingCactus

@PyCoder01 nobody cares :)

#WEEKLY Fibonacci Sequence!
posted to Share by CodingCactus


posted to Ask by StrawBester

@VFDan @TheDrone7 has made a nice tutorial on it - on his profile page, select the posts tab and it's one of his most recent ones

Very ez WEEKLY #17
posted to Share by Codemonkey51

Bruh did you actually read the post? Of course Fibonacci numbers are easy, the hard part is that you're not allowed to use recursion or iteration, but you have used recursion. Also, I have a 44-char JS function that does it without recursion or iteration.

I deleted a repl on accident
posted to Ask by FakeMU

@JosephSanthosh yep. I've been on for quite a bit more than two years I think, and I'll have been on the Discord server for two years in 6 days' time

Edit: I just looked back through old emails and the earliest email I can find is a newsletter from March 2018. However, I can't find my account confirmation email, so I must have joined a bit before then. In fact, I'm pretty sure I made my account before or very shortly after Repl Talk became a thing - that first newsletter mentions the winners of a competition that celebrated the release of I Built This, the platform now known as Repl Talk.

Monthly repls - August 2020

@eekboi stop cycle squeezing smh idot

Password Vault! #WEEKLY
posted to Share by minx28

@firefish also you now shouldn't get word wrapping :)

Password Vault! #WEEKLY
posted to Share by minx28

@firefish mmmmmm yes thx for password leaks

Password Vault! #WEEKLY
posted to Share by minx28

@clawstrike lol, really don't put your passwords here. It is not safe at all. It's just for weekly challenges and it satisfies the requirements.

Password Vault! #WEEKLY
posted to Share by minx28

@CodingCactus am not encrypting them.
1) it's just a weekly challenge, and it satisfies the requirement that you can't see other people's passwords.
2) If someone did get access to the database through .env, they'd also have access to any encryption keys I used

Where did Nathan go?
posted to Ask by BenOfWillis

@Water_Wizard ahhhhh you guys don't remember those glorious days when we used to get weekly emails from our lord Timmy from

BrainF - A Complete Guide
posted to Tutorials by minx28

@larryk thx for that correction, I'll fix it right away.
BrainF has exactly zero practical use - that's one of the reasons that I personally like it so much!

Noob here: How do I call a python script from another python script?
posted to Ask

No @gbafana25, it does work - you just need to create another file (or whatever you want to call it) and do import my_module wherever you want to use it.

If you have my_function in which is inside the folder my_folder, you can do

import my_folder.my_module

or you can do

from my_folder.my_module import my_function

Hope you found this helpful!
Upvote for vee freebucks

Discord Bot Competition
posted to Share by timmy_i_chen

@freddyamarsden you already can, the python tutorial linked on this page (i don't know about the js and ruby ones) includes a bit about creating a server

C.A.R.B.O.N Fingerprint
posted to Share

@FluidGaming great insult lmao. but that doesn't change the fact that you are plagiarising someone else's hard work and being rude to other people. How old are you? 8? 9? You did not create this and you know it, so instead of trying to defend yourself, why don't you apologise to CodingCactus and Coder100 and stop doing this?

Getting a sound... From an image.
posted to Share by eekboi

@amasad ikr, it's cool! Have you seen my Circles API, which is where the images are coming from? Docs here and example images here (refresh the page for more examples)
Edit: repl talk post also lol

My website! :D
posted to Share by minx28

@pythoder submit it on the website!