Questions tagged [repl.it]

Questions related to the popular online development environment repl.it. Questions should be related to the use and functionality of the repl.it editor/console itself rather than questions about programs developed on repl.it.

Website link: https://repl.it.

318 questions
1
vote
2 answers

REPL.IT: Python Pygame: How do you fix "pygame.error: No available audio device" Error?

I am attempting to use Sounds with my Python Pygame Game and it threw me this error: Traceback (most recent call last): File "main.py", line 5, in pygame.mixer.init() pygame.error: No available audio device How would I go about…
Anthony
  • 23
  • 1
  • 7
1
vote
0 answers

Can you perform file I/O in a REPL on Repl.it when using Swift?

There's an online site here called Repl.it that gives you an in-browser REPL environment for a ton of languages. It's great to prove out code that you post here on SO. (I think you can even include it here actually but I wasn't successful in…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
1
vote
1 answer

How do i make this text animation show in pygame

I apologize, but I am new to PyGame and I want to be able to have this text animation show in a PyGame window. (I use repl.it by the way) In this animation, I constantly print new lines of text that are colorized to make a double-helix effect and I…
1
vote
1 answer

Previously None-Existent Files that I am Opening Aren't Showing Up. Python - REPL.it

I am opening a new file (which didn't exist until now) using this line of code: file_number = input("What number player are you? ") with open(os.path.join(playergold, "gold.%s.txt" % file_number), "w") as g: #playergold is the directory…
Frasher Gray
  • 222
  • 2
  • 14
1
vote
1 answer

Disappearing element after parsing JSON

I’ve got an interesting problem: I’ve written a a HTML/JS project that grabs information via XMLHttpRequest from the Scratch website. The goal is to let someone type in their username and see the description from their profile on Scratch, using…
micahlt
  • 377
  • 2
  • 11
1
vote
1 answer

Repl.it vs. AWS Lambda + API Gateway

I've been working on a simple messaging website. So far I've used AWS Lambda for my server, which accesses DynamoDB regularly, and API Gateway. But I saw a website called Repl.it that seems to do the same thing as AWS Lambda, but for free. I'm using…
aryanm
  • 1,183
  • 14
  • 26
1
vote
1 answer

Debug the issue in my escape velocity program

The assignment was to write a program which outputs planet's radius planet's mass escape velocity The inputs are circumference and the acceleration. With the 2 inputs, we were to use the Circumference of a circle equation to calculate the…
BipoN
  • 93
  • 8
1
vote
0 answers

Different answer in code blocks ide vs Repl.it

So im answering an assignment question in c and for some reason when I run it in codeblocks or even C lion I get a different and wrong answer than when I run it on Repl.it online. I copied and pasted the code so there are no errors or differences.…
Alex bob
  • 11
  • 2
1
vote
2 answers

Custom 404-Not Found page on Repl.it

How can I create my custom 404-not found page for a website I created through Repl.it? I know I would have to go to the .htaccess file if I were hosting it (or using a hosting service, maybe?), but what about through Repl.it? How can I create my…
1
vote
3 answers

Get code to not return undefined after running

I created a function that inserts a number into an array of integers. I am assuming that the array is always sorted already.I want it to return the lowest index where the number can be inserted. I have accomplished that but after it returns the…
1
vote
0 answers

Why are changes to tempArray affecting the parentArray?

In my current code of nested while loops, I have a statement to reload the tempSequence variable equal to the original sequence variable. However, through print-checking, you can see del(tempSequence[i]) is removing the value from both the…
1
vote
1 answer

Error - unbound symbol modulo (Scheme) when using Repl online IDE

A homework problem needs me to calculate gcd of 2 numbers. But using the modulo keyword in the function for gcd gives the above error when run on Repl.it (online IDE). I looked at other answers, but they don't exactly provide a solution to the…
iamshnoo
  • 111
  • 1
  • 2
  • 10
1
vote
1 answer

Is there a way for me to make my python discord bot do something at a certain time

So I need to know how to make my python discord bot do something at a certain time because I want it to clear all messages in a channel at around 5:00am when no one is on I will be using the date time module but the problem is I do not want it to…
1
vote
2 answers

How to use OpenCV with Repl.it

I would like to write a Python script in Repl.it, but I can't seem to be able to import OpenCV. I am using Repl.it for the first time, so I am not really sure of what I should be doing. Here are the different things that I tried : Just having …
Daphné
  • 11
  • 1
  • 4
1
vote
6 answers

Detecting a character one by one if it has a specific letter, then calculates the number of them

I am trying to make a program that detects how many vowels are in a word you type. Here's my source code (I have multiple codes): a = input("word - ").lower() for i in range(1, len(a)+1): if a[str(i)] == "a" or "e" or "i" or "o" or "u": …
ONT
  • 19
  • 5