Skip to content
Open navbar menu
Sign UpLog In
Profile icon

Nobody Nobody

@littlepenguin
Sus
  • Math test

    Cover page
    Made with Python
    Recent comments (1)
    littlepenguin
    littlepenguin
    1 year ago

    This is a simple math test I created for fun. You get to select your level (easy, medium, hard), and the problem (addition, subtraction, multiplication, and division). This is a survival game, and you try to answer as many questions as possible without getting anything wrong. I worked on this a couple of days, and I hope you enjoy it. I am thinking of adding a leaderboard if people try this game.

  • hacker type-1

    Cover page
    Made with Python
    Recent comments (0)
littlepenguin
littlepenguin
published an Update
1 year ago
1
Math test
Math test
Math Test
This is a simple math test I created for fun. You get to select your level (easy, medium, hard), and the problem (addition, subtraction, multiplication, and division). This is a survival game, and you try to answer as many questions as possible without getting anything wrong. I worked on this a couple of days, and I hope you enjoy it. I am thinking of adding a leaderboard if people try this game.
#ask
littlepenguin
littlepenguin
published a Repl
1 year ago
1
Math test
Math test
littlepenguin
littlepenguin
This is a simple math test I created for fun. You get to select your level (easy, medium, hard), and the problem (addition, subtraction, multiplication, and division). This is a survival game, and you try to answer as many questions as possible without getting anything wrong. I worked on this a couple of days, and I hope you enjoy it. I am thinking of adding a leaderboard if people try this game.1 year ago
littlepenguin
littlepenguin
published an Update
1 year ago
0
info-blook
Info-Blook
Finds information about a certain blook in blooket. https://www.blooket.com
littlepenguin
littlepenguin
published an Update
2 years ago
0
Import Error with Getch
Hi, I am getting an error importing getch: from getch import getch But, it gives me this error: ImportError: /opt/virtualenvs/python3/lib/python3.8/site-packages/getch.cpython-38-x8664-linux-gnu.so: undefined symbol: PyInitModule Any idea how to solve this? Thanks!
littlepenguin
littlepenguin
shared a Post
2 years ago
Python Docs. This only works for modules though.
python docs
Python
littlepenguin
littlepenguin
shared a Post
3 years ago
I'm using python-chess but it gives me an error when I try to open the stockfish exe. Can someone help?
test -7
Python
19wintersp
19wintersp
That's a Windows executable, you cannot run those on Replit*. Can you find a download for "Linux" or "Ubuntu", or a file which ends in "deb", "elf" or has no file extension?3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
I'm getting this error with tkinter that I am not quite understanding. Can someone explain what is happening and what can I do to fix this? Thanks
math tester tk
Python
maxina
maxina
On line 41, you have the random word "for" in the middle of nowhere, just remove that, here would be the working code: from tkinter import * from random import * root = Tk() root.geometry("500x500") root.title("Math Tester") eq = ["", "%", "-", "+", "/", "*"] def Take_input(e, q1, q2): answer = int(eval(str(q1) + e + str(q2))) INPUT = int(inputtxt.get("1.0", "end-1c")) if(INPUT == answer): Output.insert(END, 'Correct') else: Output.insert(END, "Wrong answer") def main(): P3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
Hello everyone, I made a tic tac toe, and as it is almost Christmas, I made it Christmas Style. Upvote if you liked it!
python tic tac toe
Python
KietPhan
KietPhan
Cool but not align lol3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
Is there a way to clear the screen in Java? Thanks
RYANTADIPARTHI
RYANTADIPARTHI
Solution different ways are public class ClearScreenExample1 { public static void main(String[] args) { System.out.print("\033[H\033[2J"); System.out.flush(); } } another way public static void clearScreen() { System.out.print("\033[H\033[2J"); System.out.flush(); } That should work3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
I'm checking for the win in the 'check_winner' function. It's supposed to check for wins and print them, but it doesn't. Can someone help? Thanks.
python tic tac toe
Python
RYANTADIPARTHI
RYANTADIPARTHI
I don't think you have to name certain arrays for everything. like toparray middlearray and all. another thing is, whoever has it, you need to check the player while in the process.3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
Is there a way to import a javascript file from a python file? Thanks.
Coder100
Coder100
no! They are two different languages!3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
Is there a way to put an image into the console? Thanks. Language: Python
CodeLongAndPros
CodeLongAndPros
Yes you can. Place this into image.py: from PIL import Image ASCII_CHARS = ['.',',',':',';','+','*','?','%','S','#','@'] ASCIICHARS = ASCIICHARS[::-1] ''' method resize(): takes as parameters the image, and the final width resizes the image into the final width while maintaining aspect ratio ''' def resize(image, new_width=100): (oldwidth, oldheight) = image.size aspectratio = float(oldheight)/float(old_width) newheight = int(aspectratio * new_width) newdim = (newwidth,3 years ago
Highwayman
Highwayman
You can’t put it in the console, but repl.it supports plenty of graphics libraries that can display the image like PyGame.3 years ago
realTronsi
realTronsi
no, you could use ascii art though3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
This program tells you how many letters of the word accoured. Upvote if you liked it!
Character frequency
Python
littlepenguin
littlepenguin
shared a Post
3 years ago
Can you break an if statement? thanks
RYANTADIPARTHI
RYANTADIPARTHI
you cannot break out of if stataments. Only loops allow you to break. Since they run forever, until something is satisfied. The if statements don't need anything. They get satisfied easily. Just remember only loops can use break and continue. If statements cannot.3 years ago
CSharpIsGud
CSharpIsGud
Well, not break per se. but you can do this with the goto-statement module #Python 2.7.17 from goto import with_goto @with_goto def main(): if True: print("One.") goto .after print("Two!") label .after print("Hello, world!") main() But please for god sake do not. You can do it more readable and easier by just not doing this3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
Is there a way to get all of the repl user's username? I'm working on a repl.it user search so I would like to get all the usernames. Is this possible
repl user search
Python
EpicGamer007
EpicGamer007
You can try using graphql with nodejs... there is no other way https://repl.it/talk/learn/How-to-Use-Repl-Talk-APIGraphQL-NODEJS/79299 ^ That is the tutorial but it is nodejs,3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
How do you keep a Discord Bot Token a secret? Thanks Lang(Python)
rnjn1
rnjn1
..1771 year ago
PattanAhmed
PattanAhmed
@CT2224 Hi, Yeah, I know. The main part of making a Discord bot is storing the tokens. The Repl.it also has the ability to keep your tokens safe and secure only when you create a file called .env and save the data there. No one can access it even when they Fork or Download the Repl. Read this docs for more info:- https://docs.repl.it/repls/secret-keys That's it Thanks! Hope this helps!3 years ago
realTronsi
realTronsi
use an .env file, @RYANTADIPARTHI suggestion will not work3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
This is a simple math quiz. Pick your level min and max and start playing. Upvote if you liked it!
math quiz!
Python
littlepenguin
littlepenguin
shared a Post
3 years ago
I am making a flask app, and I can't access the app. It just says 127.0.0.1 refused to connect. Can someone help?
flask chat app
Python
RYANTADIPARTHI
RYANTADIPARTHI
refresh You might want to try refreshing, or making a new repl. If all fails, report to bugs. click here3 years ago
InvisibleOne
InvisibleOne
Doesn't that usually happen if there is no client trying to connect to a server?3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
This is just a simple calculator. Add the operations and the numbers. All feedback is appreciated. Upvote if you like it!
full-calculator
Python
k9chelsea2
k9chelsea2
cool3 years ago
littlepenguin
littlepenguin
shared a Post
3 years ago
This is a snake game made with curses. Note: This might take a few reruns If you hit yourself, you die. Collect all the fruits to get more points. If
snake curses -1
Python