Atri Dey
@AtriDey
I feel like I should have some kind of edgy and creative bio, but I honestly don't care enough to think one up.
Edit: Despite this project coming up on a year old, it seems people are still finding it. I'd like to clarify that Yahoo's database, the project's sou
Python
MultiLangCoder It doesn't work on not-so well known countries like Cyprus, Angola and Luxembourg.1 year ago
I've had a lot of fun with Godot. First, I got familiar with GDScript and made a moving character. Then, I improved that initial character and also in
HTML, CSS, JS
Yesterday, I showed you guys my original post on the Godot engine which can be seen here.
Today I've been busy. After giving up on Tinkercad's horrib
HTML, CSS, JS
After procrastinating doing something productive, I spent a couple hours learning about Godot and GDScript. Now, I have achieved... the ability to mak
HTML, CSS, JS
The error is in line 16, where a variable with the value of 0 is used to assign URL_arr[0] to the input. Why isn't this working?
Python
a5rocks You don't assign to a list, instead you do something like .append()
For example URLinput=URLarr[arrnumber] (I think you mean URLarr[arrnumber]=URLinput btw) should be URLarr.append(URLinput).3 years ago
My first big project takes your notes, timestamps them, and saves them to a password-protected user folder. Can't run in a new tab, as a bit of resear
Python
squidcoder You could also use the pickle module to create a new file in binary, so it would take up less space. I think it would also make the code a bit shorter, but I don't know.3 years ago
I had a bug with invisible files, so I was moving my code to a fresh repl. I'd done this before. After renaming this repl, my computer froze for a sec
HackermonDev All you can really do is report the bug at repl.it/bugs and hope they fix it3 years ago
Entering 'access' causes the elif to run def access (). However, it simply stops working. It doesn't run a single line of def access. Is it a syntax e
Python
eco27 it's because you are prompting the user for input everytime you call input() the first time you prompt is in the if input()=='new' so it checks if it's new, but then if its not it prompts the user for input again which is why it appears to be doing nothing. if you type access twice in a row, you should see that it works. To fix this, get a variable and before the ifs/elifs do x = input() then check if x == 'new' and elif x == 'access'3 years ago
I'm trying to learn how to use PyGame, so I'm running code from an online tutorial. Upon running, repl.it couldn't import the PyGame module. A quick G
Python
Nayoar Hi!
You cannot use PyGame in a normal Python repl. Instead, you need to make a PyGame repl, which is treated by Repl.it as a separate language. Clicking here will create one.
Although I've never actually used PyGame myself, let me know if you need any more help!
Also, please mark this comment as the answer to your question if I've helped you ;)3 years ago
It simply won't start. After a lengthy install, it doesn't respond when I press run. What is happening?
Edit: Now there's a bunch of errors.
Python
ash15khng I don't think keypresses really work very well on repl because it is browser based.
EDIT: the error is about being root, try using another library?3 years ago
AllAwesome497 Try opening the repl shell ctrl+shift+s and running kill 1, this should cause everything to reset.3 years ago
I made a metronome, and motherboard beeps were getting boring. I decided to play a woodblock sound using the playsound function. I don't understand th
Python
Geocube101 It appears as though "gi" cannot be imported (The playsound modules failed to import the "gi" module).
Try manually importing it using the package installer, or by adding "gi" to the "requirements.txt" file3 years ago
I was bored and was playing with exponents. C++ variables hit inf in under a second. I turned to Python and made this monstrosity.
Repl.it gets a PyM
Python
Highwayman Hm...
256 == 2^8
One byte can hold up to 2^8 - 1
256^256 == 2^(8^(2^8)) == (2^8)^(2^8) == 2^(8 \* 2^8) == 2^(2^3 * 2^8) == 2^(2^11).
2^10 == 1024, 2^11 == 2048.
2^(2^11) == 2^2048.
g d. That’s a lot of bits.
That’s a 257 byte integer. The system of repl.it only has a data type as big as 128 bits. 2048 bit integer is like 16 times that size. Yeesh.3 years ago
Probably made a stupid mistake here, but I have no idea what it was.
This error only occurs in the void fast_mode function. The highscores are broken.
C++
SixBeeps There should be one < instead of two.
Also, don't seed the rand() value, that will make things worse.3 years ago
This is part of a school project for a Breakout.edu. If someone enters the incorrect answer with a letter, the loop bypasses the input and repeats. Is
C++
SPQR This happens because cin cannot read something that would cause it to error. You can resolve this particular issue by flushing cin after the input is taken. (Try adding cin.clear() and cin.ignore() at the end of your while loop.)
As for using a char[4] for comparison, try using a std::string, which can be compared to other std::strings.
For example:
using namespace std;
string input;
while (input != "hello!") cin >> input;
`3 years ago
It never works. I don't know what else to say. This one's a program for a Breakout.edu I'm doing at school, and it once again won't work.
https://den
C++
a5rocks Looks like it works to me? Mind taking a screenshot / saying what the desired behaviour is?3 years ago
Why not simply say
using namespace std;
and omit the std::? For example,
std::cout<<"Hello World!"<<endl;
rather than
using namespace std;
and
cout<<
eco27 I would write a reply but this one is way better than anything I could write
https://www.geeksforgeeks.org/using-namespace-std-considered-bad-practice/3 years ago
I don't like C++. My Python-coding friends hate it. Everyone says that Python is a better starting language than C++. My original plan was to learn f
Highwayman I can spend years learning Python if I need to.
Why not spend them on C++? If your willing to do that for a language, then why do you hate C++?
Edit: sorry you said you don’t like it not hate it, but still I curious: why? What isn’t that great about C++?3 years ago
ArjunSS1 W3Schools has a lot of good information for learning python. I personally got my fundamentals with codecademy. But codecademy is not good for python3 years ago
theangryepicbanana Learning is not an instant process. If you'd like, you could always try Sololearn, which is an online tutorial website that has python as one of the languages it can teach.3 years ago
My extremely basic coding skills can't unleash the full potential of an infinite while loop.
Your turn. Please make something.
Fish based off design
C++