Ask coding questions

Posts
1
whats the best coding language to learn?
hey im sorta new to coding and have started doing some python and im just wondering what would be the best coding language to learn (see title) Any ideas would be highly appreciated
3
posted by mmcdermotttcsp (2) about 15 hours ago
1
How to remove what languages you write in on your profile?
I only write in python but I accidentally forked or opened repls in HTML, CSS, JS, and Python3 but I don't write those. How do I remove it from my profile?
2
posted by TommyIsAwesome (7) about 13 hours ago
2
Is there a way to become root on here?
Title
3
posted by Elitemagikarp (1) about 20 hours ago
1
Bug? Python3 output window doesn't support lines that edit themselves
For example, pip installations, when they show a progress bar, constantly updates itself with the current progress of the download. On repl however, every update prints as a new line. Try this code: ``` import pip pip.main(['install','tensorflow-gpu']) ``` ...and just watch as repl's output starts to print thousands and thousands of lines as the server downloads the package from PyPI, which usually brings my browser to 100% CPU usage just trying to show all of the lines! Is this a bug in repl.it?
3
posted 1 day ago
3
random thread
post what ever you want here
5
posted by UndertaleRulez (23) 1 day ago
1
IDE
I would like to make a suggestion for repl.it. In the python editor, could you give the option to add libraries like tkinter or guizero? Or maybye a visual GUI editor?
1
posted by smokykitty0 (0) about 17 hours ago
2
Hack
What is the best language to hack in, and can somebody make a good course in hacking because I want a career in cybersecurity
10
posted by Thorpedo101 (1) 1 day ago
1
Python: Package installation failure
Hello everybody! I'm studying virtual assistants and i don't know how to fix this error: Repl.it: package installation failure Traceback (most recent call last): File "python", line 3, in <module> ModuleNotFoundError: No module named 'speech_recognition' Can help me? ![error](https://storage.googleapis.com/replit/images/1532094707343_392338cc7d4e91ce3cb2801610b2e37b.pn)
1
posted by vickvick (1) about 20 hours ago
1
React project saves and recompiles too often
As I edit my repl it seems to save and recompile every few keystrokes, meaning after I've made a few lines of changes I have to wait as it recompiles over and over and over to catch up to where I am. Is there a way to fix this?
7
posted by JesseAbramson (0) 2 days ago
2
How do you code tic tac toe
tell me how please i wanna play against myself
8
posted by BlueScoobyDoo (1) 2 days ago
1
C# editor in web application (Aspnet Or ASPNET core)
Hi, Please let me know is this possible to get the source code for C# online editor to integrate in the application and if Yes, please let us know if there are any samples available in web. We can discuss further on costing
1
posted by Vijaybati (0) about 21 hours ago
1
Rust external crates
How do I add external crates in the rust compiler??
6
posted by AshHeart (0) 2 days ago
3
Scripting for Minecraft
I was wondering if taking the Java tutorial on repl.it is a good choice for learning or if there is another site that may explain it better.
8
posted by JulianLowe (2) 3 days ago
1
Visualizing plots
How would you use matplotlib to show the outputs? I tried running the code with a simple plotting routine but there was no output since it shows the console window only. Am I missing something?
4
posted by ktiwari9 (0) 2 days ago
5
Interest in AI
So recently I have taken an intrest in AI develepent and i was wandering if somen could provied some matareiel to help me learn on how to create a Deep learning algorithem. ps. sorry for my bad english and sorry if its a dumb question
3
posted by MaticMatic (4) 3 days ago
2
Embed using script tag
I used to be able to embed a repl using only a script tag and then include the url. It doesn't work anymore, and when clicking share I can only choose the iframe option. Is this feature still available?
1
posted by blonkm (1) 2 days ago
3
HTML/CSS/JS Results and Console windows
Is there a way to Display Result and Console windows at the same time? This would be really helpful while creating and debugging!
1
posted by bbbmmman (2) 2 days ago
2
Code doesn't run
It happens regularly that the python code i am writing simply doesn't run. I try to stop and nothing happens. I refresh the page i get the same problem. Few hours later i try and everything runs smoothly. I really would like to use Repl but i am having so many headheache that i am tempted to find another solution :(
9
posted by GabrieleRomagno (1) 4 days ago
1
Random Numbers with Arbitrary Probability Distribution (Python 3)
So I want to generate a random number, for example between 1-100. I want the probability of 100 being generated to be way more likely than 1, going up like that. The greater the number is, the more likely it is to be generated. If it helps to have some context, I'm making a game where weapons have an accuracy. The higher the accuracy, the more chance there is of the weapon hitting the target, but I still want it to be (however remotely) possible for the weapon to miss, even if the accuracy is really high. I've done some research into APD, but not found much in the way of a solid solution. Can anyone help? Thanks.
3
posted by OwenBradstreet (42) 3 days ago
3
Random numer guessing games
I am having trouble with the while loop, I want it to repeat the (if guessedNumber is <number, print (to low)), until they guess the number. Any help? ![Uploading UnconsciousVitalDeadcode.zip...]()
1
posted by wgccesa54 (2) 3 days ago
1
ReactJS with Express
After using React a bit in the Repl.it environment, I have decided to use an Express-React app. The React rendering and hosting style is foreign to me, so I do not understand how to merge that with an Express app. How would I do so?
5
posted by 426729 (121) 3 days ago
3
Is there a way to make the editor go fullscreen.
It helps a lot if we can make the editor fullscreen, especially when we need to focus on coding only. Is it possible to do so in our repls?
6
posted by mesayan (2) 4 days ago
1
Reading Lines on Python (Asked Twice)
I'm desperate. Please help me with reading lines for other files. Please don't steal my code (Take it and call it your own). There are better codes out there. https://repl.it/@AlexTerm/Login-or-Register Accessing the Issue: 1. Enter L 2. Enter 1: It comes up with as, which is the first username in usernames.py 3. Rerun the program 4. Enter L 5. Enter 2: It should come up as 'sa' , as it is the second username on the file, however, it comes up with 'as'. Issue may/may not be found on lines 64 - 69. Any help is much appreciated. Frequently Asked Question: Q. This won't work because (blah blah blah) servers (blah blah blah) use django. A. Yeah, I know it won't work across every single computer, but: 1. It's only meant to work on a single computer. 2. I'm not that experienced, I only use Python (sometimes Lua) and I haven't even learnt how to do object-oriented programming on Python, so (please) don't expect me to learn new code.
1
posted by AlexTerm (1) 2 days ago
2
Cyclomatic Complexity too high?
I know that Cyclomatic Complexity is the number of different routes the user can take through code after a certain point (correct me if I'm wrong), but how can it be too high? Python 3 says above 15 is too high - it doesn't seem to affect my code in any way, it's just annoying that it underlines code for no apparent reason. Can someone explain this to me? Thanks.
2
posted by OwenBradstreet (42) 3 days ago
2
Is the code i write here private?
Hey "somebody" is the code i write in repl private?
4
posted by iamFutureCode (1) 4 days ago
1
Is "import turtle" supported under the Python 3 compiler?
I'm sorry if this is a simple question or if I had made an error somewhere, im a beginner to coding in general so bear with me. I'm trying to run a simple program using the turtle command and everytime i run it on this site I get an error that reads "_tkinter.TclError: no display name and no $DISPLAY environment variable". When I try to run this code on other compilers it runs just fine. I feel like I may be making a very simple mistake, below is the code: import turtle tut = turtle.Pen() count = 0 for x in range(8): tut.forward(50) tut.right(45) count = count+1 print("Loop cycles: " + str(count)) if count > 7: print("The octagon has completed.")
1
posted by zippykins (0) 2 days ago
2
Python Glitch
Hello, I'm self-enrolled in the Python 3 course. I'm trying to print all numbers in a range on the same line, and am using the code: a = int(input()) b = int(input()) for i in range(a, b + 1): print(i, end=' ') the model solution (I used a different code to submit it that did work) is the same exact thing. However, although it works in the model solution, it doesn't work in the student area. This is because of the end = ' ' code, which allows it to print on the same line instead of different ones. Instead of working, the program prints nothing, even though (i triple checked) it is the same exact thing as the model solution. I need this code to work for a following assignment on the same classroom, but it won't work because of the glitch. I was wondering how this could be fixed? I know that it's not my particular account becuase it's not working for my friend, either.
8
posted by AmberTheCorgi (1) 4 days ago
1
An Error in my repl.it
I just wrote up this simple code that generates primes in c++.The code seems to run correctly on smaller amount of primes, however when I increase the amount of primes that are generated I get the error message "exit status -1" .I tried googling what the error message meant but wasn't able to find anything useful. Can someone tell me what I'm doing wrong? Thank you in advance. ![Exit Status -1](https://storage.googleapis.com/replit/images/1531880378623_63af95bbf79bfd77e65daa0c56201f8a.pn)
2
posted by nika5050a (0) 3 days ago
1
NPM ERR code ENOGIT
Hello I tried to run a simple script, which uses the library "eth-dagger". When I want to run it, it's installing the package and then goes for an error: ![image](https://storage.googleapis.com/replit/images/1531922255084_0c346f52ea1116c732b4cead31a465cd.pn) Can I solve this somehow? Thanks
1
posted by fr4z3n (0) 3 days ago
1
Will there ever be custom domains?
On repl.it, there are subdomains (https://title--user.repl.co/) but no custom domains. Will there ever be full-blown hosting?
3
posted by 426729 (121) 5 days ago
Load more