Questions tagged [replit]

Replit (formerly Repl.it) is an online IDE (integrated development environment) supporting over 50 programming languages. Use this tag for questions regarding using the IDE.

replit (formerly Repl.it) is an online integrated development environment (IDE) that supports over fifty programming languages including Python, Node.js, Java, C++ and Kotlin (to name a few). It contains an editor for writing your code. It can then build your code (if required) and execute it. All online in your Web browser.

361 questions
-2
votes
1 answer

Why is my project giving me the incorrect output?

I am learning Java, and have a "project" that I need to complete for my class. I've created a "fortune cookie" program, that randomly selects an array index and prints out the corresponding "fortune" from an array of fortunes. For some strange…
-2
votes
1 answer

I am a beginner Python learner and Im trying to do a question game

import math import time input = input("What is your name: ") print(f"So, I understand you name is {input}") time.sleep(.5) print("Let's start") print("Would you like to do a Question game or a Truth or False?") startquestion = int(input("type 1…
-2
votes
1 answer

I am getting an error in my Python program, that seems to only occur every now and again

I am writing a quiz in Python for a school project, however I have hit a road block. Every now and then, when I run through it, I get this error: Traceback (most recent call last): File "main.py", line 55, in
-2
votes
1 answer

Convert Word file to pdf in python

How do I go about converting a word file to a pdf in python? I use replit, so I realise that rules out all the options that require linux to install Office Many thanks, ideally, this is what i…
002593
  • 3
  • 2
-2
votes
2 answers

Putting print statements on the same line

I am tring to learn python and want to know if i can do this, and how. I am trying to make binary looking code come up digit by digit, with delay. In maybe there is 15 numbers, and each repeat i would like to make it do a set of 5, with a space…
-2
votes
2 answers

read write csv/dataframe files

i am trying to remove the 5th and sixth item of each line of my csv file each line is a list but when i am trying to run it i am getting a (DataFrame constructor not properly called!) error please help i have tried everything i can but i cant find…
-2
votes
1 answer

How can I make a discord bot that sends images from google with discord.js?

I'm very new to js/discord js and I want to make a basic discord bot that sends a picture of a capybara to a channel every hour but I have no idea how, I have one that sends the same phrase every hour so I'm assuming it stops sending random images…
-2
votes
1 answer

Add html to a site in a site (proxy)

I imported a web proxy from github known as rhodium on to replit, and, after some editing was satisfied with the results, but i cant seem to add HTML to a site that is proxied. Example: You use rhodium to navigate your way to www.discord.com, but…
-2
votes
1 answer

How to raise a variable to a power and store it to another variable

Image of my code: I'm new to pyton and i'm trying to raise the input of the variable x and y to the second power, but i don't know how to. Plz help, this is due on friday :'-(
-2
votes
1 answer

AttributeError: module 'discord.ext.commands' has no attribute 'event

I am new to discord python so I don't have idea what is this problem. It seem like in line 26 there are some problems I am using replit to make the bot. This is my code: import os import discord #import io import random #import textwrap #import…
-2
votes
1 answer

discord.js bot hosted on replit not turning on anymore

I had my bot hosted for a while on replit.com its been days but suddenly it stopped responding I stopped it and ran again it stopped working, It has been hosted 24/7 for days no error I don't know what to do.
-2
votes
1 answer

Discord.js Bot Quiz Command

I was looking for a command that would give a question and 4 options ( if possible as buttons or reactions), where i could give questions in the code with the correct answer, but all i could find online were for slash commands, getting questions…
-2
votes
1 answer

How do I compare a list with an interger?

This is what code I currently have (But in simplified form): Example = [0, 0, 0, 0, 1] Test = random.randint(0,len(Exmaple)) if Example[Test] == 1: print("Working") else: print("Not Working") I want it to print "Working" by detecting if it…
-2
votes
1 answer

How could I implement audio to my program in Replit (JavaFX) only via URL links?

I want to add audio to my JavaFX project in Replit. Is there a way to use a public accessible URL link that references an .mp3 file in order to play audio? For example, the following allows me to include an image only using a URL without having to…
-2
votes
2 answers

Why am I getting this error when I am trying to run my Discord bot

Why am I getting this error when I am trying to run my Discord bot [1]: https://i.stack.imgur.com/Bw4OU.png ....
1 2 3
23
24