is there any way to have music playing?
RYANTADIPARTHI Solution read this docs. And you will know how to play music in repl.it https://docs.repl.it/repls/audio2 years ago
Bookie0 Click me and you'll be astonished to find out how to play music, audio, or other audio-related things on repl.it! :)))2 years ago
I have this game and i feel like the game field is too small. is there anyway to make it bigger?
RYANTADIPARTHI you can't change font size in the python console. Maybe try using ascii letters.2 years ago
SixBeeps There's no changing the font size, but you can zoom in on your browser and the terminal will scale reasonably well.2 years ago
GABELACANLALE for i in range(0,10): for i in range(0,20): print('□') print('') `2 years ago
i have this code where you have to type the right letter to get points. is there a way i to set a timer, lets say 60 secs, and when it is over the cod
RYANTADIPARTHI Solution use the time module. It works perfectly. import time start = time.time() end = time.time() if start - end > 60: exit() like that. It stops the code It should work2 years ago
robowolf I would look into Multi Threading to do that. But to make it simple you can get do something like import time start = time.time() input('?') end = time.time() if (start-end)>5: print("you lose") `2 years ago
i have this code and i would like to have it so that you only have a certain time to see how many points you can get. is there any way to do this
RYANTADIPARTHI Solution try the time module. HEre's an example import time d = input('what is 2 + 2 ? ') time.sleep(5) # waits 5 seconds print('you lose') # example after 5 seconds so like, if they wait for 5 seconds, they lose. You can modify with if statements and all. That should work2 years ago
I'm making a project where it gives you a letter and you have to press it in order to get a point. does anyone know how to detect which key is being p
mesquite2234 from getch import * thing = getch() if thing == other_thing; #stuff 2 years ago
InvisibleOne Personally, I use getch2 years ago
KingsleyDockeri I recommend Pynput. Here's a tutorial of a simple keylogger: https://www.bing.com/videos/search?q=key+logger+python+tech+with+tim&&view=detail&mid=C45BAA84C64ED9013203C45BAA84C64ED9013203&&FORM=VRDGAR2 years ago
I am wanting to import images to acompany a story. I have tryed metpoint lab and PIL. metpoint stops my code and PIL dosn't display the image. What ca
RYANTADIPARTHI You cannot display images in the console, but if you want it in pygame, or in HTML, css, or js. Try these links: https://www.geeksforgeeks.org/python-display-images-with-pygame/ https://www.w3schools.com/html/html_images.asp2 years ago
Coder100 You can't display images in the console, but you can do two things: ASCII art. https://fsymbols.com Pygame You could technically also use this2 years ago
SUHASTADIPARTH1 If you are writing a story, and you want images to accompanied with, you might want to use HTML, CSS, and JS2 years ago
I do python 2.7 and i'm wanting to make an easy and impressive game to impress my crush who is into coding, anything?