Deacon Cronin
@Deacon_Cronin
I was wondering if there was a way to make colored console output in Java on repl. I tried ANSI escape codes and they didn't seem to work, so I need a
SixBeeps Could you share your code using the ANSI escape codes? They work that way in Python, so I'd be surprised if they didn't in Java.3 years ago
Made this in like an hour, it's very simple and most likely has some bugs because I'm not great, but I appreciate how it turned out anyway.
You must e
Java
I feel like we should restrict access to the announcements board to mods only to avoid the massive amount of spam I'm seeing on here.
ash15khng There's also a problem with the ask board. Some people just randomly spam here and it's pretty annoying when I'm trying to help people with legit issues.
Ok it's not a problem with the board and I don't see any solution to this.3 years ago
theangryepicbanana Yea this is a known problem. Last time I checked, the repl.it team was working on a new announcements board thingy that would not allow normal users to post on it3 years ago
This is an example of me trying to use a subclass. In this case I'm trying to place the attribute of a subclass into a list in the upper class, and it
Python
ArchieMaclean Here, you've created classes, but not instantiated them.
This is a bit like making a blueprint, but not making the actual model. The init methods won't be called either.
To instantiate a class (create the object), you need to add () when you create it,e.g.
x = career()
This happens here, and also when you do x.job.stat. Again, add a () to instantiate then use .stat:
Or (recommended)
class career:
class job:
def init(self):
self.stat = 5
def init(self):
self.jobs = []
x = caree4 years ago
First off, here is the link: https://repl.it/@Deacon_Cronin/Final-Project-Hack
I'm working on this as a project. I'm a high school freshman right now,
heyitsmarcus Here is the repl I made from your code: https://repl.it/@heyitsmarcus/Final-Project-Hack
So, the problem you're running into is that when difficulty gets passed into your guesser function, difficulty is not of type int. difficulty is actually a string. And the reason for this (took a minute to trace it back) is that when you are passing the difficulty as dif to the random_mission() function, you are passing it directly from input which makes it of type string. But, you need dif to be of type4 years ago
Hi, I have been wanting to try web scraping with Python and most of the guides I find require two modules called "beautiful soup" and "requests" and I
heyitsmarcus Hey @Deacon_Cronin,
I found beautiful soup in the Package manager in Python repls. Search for beautifulsoup4 which is the official package name. And requests is also in there under just "requests".
The description for beautifulsoup4 is "Screen-scraping library" and has a package homepage which is https://www.crummy.com/software/BeautifulSoup/
The description for requests is "Python HTTP for Humans." and has a package homepage which is https://2.python-requests.org/en/master/4 years ago
Occasionally whenever I run any pygame repl (at least to my knowledge regardless of code) it which eventually display "nohup: redirecting stderr to st
Deacon_Cronin @PYer Do you have any idea what this is about? You're my favorite python lad (although I don't know if you use pygame)4 years ago
https://repl.it/@Deacon_Cronin/Gayme-Jam?live=lSDdpl8AhsBf1A whenever I run this code i get "nohup: redirecting stderr to stdout" and everything stops