Maya Farber Brodsky

@AlephZero (244)
Countably infinite.
posted to Announcements by katyadee

@antonmata Congratulations!

Java terminal color?
posted to Ask by nsedler

I don't know about any specific features, but you can always use ANSI escape sequences. For more info, read this:

Hope this helped :)

How do I set command line arguments for my REPL
posted to Ask by evanxg852000

Press Ctrl-Shift-P inside your repl and then "Open Shell".
This will open a normal shell inside your repl directory, where you can run your program as you would on a regular command prompt, with command line arguments.

There might be a better way to do this, but this is the only way I know.

Sorry for the late reply, and keep coding on!

Loops in python are super confusing am I right or wrong? PYTHON
posted to Ask by YvngBashit

@JoshDaBosh I disagree, for loops in Python aren't similar to traditional for loops (for example in Java or C). They resemble for-each loops more than anything.

Loops in python are super confusing am I right or wrong? PYTHON
posted to Ask by YvngBashit

For loops in Python can indeed be confusing, especially if you come from a different language.

I think a good source to learn from is the Python documentation:

For loops:

While loops:

For more information, you can check out the Python wiki:,

Quad Calculator
posted to Share by DragonLord5646

Nice! I like it.

I'm glad you're using Python, it's a wonderful language and I'm sure you will continue to enjoy it ;)

Best java discord framework?
posted to Ask by nsedler

I would say the JDA Discord API wrapper, you can find it at

Good luck with creating your bot, and keep coding on!

How does this function work?
posted to Ask by TimakovV

I'm assuming this is Python code.

Basically you're looping through every i in range(1, n+1) which means every i from 1 to n+1 not including n+1. Since n=5, this means every i from 1 to 5 (including).

Every iteration of the loop you add i to the sum, which means sum = 1 + 2 + 3 + 4 + 5 = 15 as you stated.

Hope this helps, and keep coding on!

posted to Ask by a5rocks

The collaboration mode is currently in beta, here's how you can enable it:
Go to , Roles, and enable Explorer.

Once this is enabled choose any repl, and there should be a 'Live Coding' button on the left sidebar. Click on it, and click on 'Start Session'.
You should see a link, which you can share with your friends so that they can collaborate with you.

Please note that your friends need to have a account, but they don't have to enable explorer mode.

Enjoy collaborating on!

Music Kombat
posted to Challenge by srodvasquez

Wooow! This is awesome. The pixelart is great!

posted to Challenge by arsagulmsk
posted to Challenge by arsagulmsk

Wooow cool! I would suggest to have some button on the screen to change the music, because it's a little inconvenient to change it through the element directly.

BeatKeeper - Make a rhythm game out of literally any song
posted to Challenge by rshetty

Awesome! Really impressive.

Game of Life
posted to Share by AlephZero

@HarveyH Thanks!

Java Methods
posted to Ask by pramod_khatri

Yes, but next time please link a repl instead of copy-pasting the code.

Here are the problems with your code:
1. When you called COMPOSITE in the main function, you did not provide any arguments.
2. COMPOSITE should be static (public static int COMPOSITE(..)).
3. Instead of System.our.println("Enter a Number."), you should write System.out.println("Enter a Number.")

In general, if you receive arguments from COMPOSITE there is no reason to set them again in the code, or ask for input - either change COMPOSITE to be with no arguments or don't set it in the code.

Hope this helped, and sorry for the delay :)

posted to Ask by drloh

Can you please link the repl you are referring to? Thanks!

please help me with packages.
posted to Ask by Vishvajeet_sinh

I don't understand, what programming language or repl are you referring to?
Please be more specific :)

numbers not accepting without quotations in variable.
posted to Ask by Vishvajeet_sinh

Can you please link the code/repl you are referring to?

Quadratic equation solver
posted to Share by GIORGOSMENTES

@GIORGOSMENTES Still incorrect.

You wrote
x1 = (-b + math.sqrt(d) + (2 a))
x2 = (-b - math.sqrt(d) + (2

instead of

x1 = (-b + math.sqrt(d)) / (2 a)
x2 = (-b - math.sqrt(d)) / (2

posted to Ask by 0801goble

@0801goble Ah yeah, are you getting this error?

"Command "python egg_info" failed with error code 1 in /tmp/pip-build-4lmunp8n/turtle/
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command."

Exporting From Repl
posted to Ask by gshah2020

@gshah2020 Unfortunately I don't know the timeline, but I guess the team should post updates on
Sorry for the delay btw, I wasn't notified of your reply.

Quadratic equation solver
posted to Share by GIORGOSMENTES

Cool concept, however the equation itself is incorrect.

Solutions to a quadratic equation are
(-b + sqrt(d))/(2a), and (-b - sqrt(d))/(2a).

use of unstable library feature 'rand': use `rand` from
posted to Ask by MeowC

Can you please link the repl you are referring to?

Blue the Chatbot (in progress)
posted to Ask by SpicyRice

I don't know if this is just a bug on my end (and I can't see if it's a bug in the program since I'm not familiar with Ruby), but for some reason it doesn't return any response..?