# Maya Farber Brodsky

@AlephZero (244)
Countably infinite.

@antonmata Congratulations!

@SnailPotato They just announced on twitter they're delaying it by one week

Java terminal color?

Hope this helped :)

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 repl.it!

@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.

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:

https://wiki.python.org/moin/ForLoop, https://wiki.python.org/moin/WhileLoop

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?

I would say the JDA Discord API wrapper, you can find it at https://github.com/DV8FromTheWorld/JDA.

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

How does this function work?

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 repl.it!

Collab

The collaboration mode is currently in beta, here's how you can enable it:
Go to https://repl.it/account , 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 repl.it account, but they don't have to enable explorer mode.

Enjoy collaborating on repl.it!

@JacksonEnnis Haha probably

Music Kombat
posted to Challenge by srodvasquez

Wooow! This is awesome. The pixelart is great!

VynilWeb
posted to Challenge by arsagulmsk
VynilWeb
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.

Awesome! Really impressive.

Game of Life
posted to Share by AlephZero

@HarveyH Thanks!

Java Methods

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 :)

QBASIC

I don't understand, what programming language or repl are you referring to?

posted to Share by GIORGOSMENTES

@GIORGOSMENTES Still incorrect.

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

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

Libraries

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

"Command "python setup.py 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.

Exporting From Repl

@gshah2020 Unfortunately I don't know the timeline, but I guess the repl.it team should post updates on https://repl.it/feedback/p/github-integration.