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
votes
1 answer

Python discord bot hosted on repl.it not working properly

So, I am developping a bot on repl.it and I don't understand why my code is not working... I have a looped async function that is called every 24 hours: @tasks.loop(hours=24) async def send_plot(): await bot.wait_until_ready() if…
canvinus
  • 11
  • 1
-1
votes
4 answers

How do I output variables from a function in python?

So I was developing a python program for my school project that asks a customer for their details such as their Firstname,Lastname,Age etc. So I made a function called customer details. def customerdetails(): Firstname = input("Enter your…
-1
votes
1 answer

Can someone tell me why it is saying i have a "invalid syntax"?

This is my code: from getch import getch from replit import clear test1 = [] code = { "!" : "!","@" : "@","?" : "?","." : ".","," : ","," " : " ","#" : "#","$" : "$","%" : "%","^" : "^","&" : "&","`" : "`","~" : "~","_" : "_","=" : "=","\\" :…
-1
votes
5 answers

I'm getting the error TypeError: Unsupported operand type(s) for %: 'list' and 'int'

I am new to python, but I am getting this error and don't know how to solve it. numbers = [100, 50, 10, 1, 2, 7, 11, 17, 53, -8, -4, -9, -72, -64, -80] b=1 while b>=1: if (numbers % 2) == 1: print(numbers[b]) b += 2 else: break
Shalom D
  • 11
  • 6
-1
votes
2 answers

i cant get this TypeError fixed

error message: `Traceback (most recent call last): File "main.py" line 23, in if gold>="4": TypeError: '>=" not supported between instances of 'int' and 'str'` my code: Code: import…
-1
votes
4 answers

Losing data from Quick.db in my Discord Bot

I have a bot game in Discord, so i've used 'express' library to set the bot online (I guess). First of all to be clear, I'm not a dev pro, only a person who learned watching tutorials in YT. So I've created a bot game, but sometimes, my bot get…
alienjs
  • 1
  • 1
-1
votes
1 answer

Html form imput data imput into txt file

I am looking at making a simple survey for my clients, I have the base code, I just need to be able to log the user's input to a txt file! I want 1 answer per line per form (like User 1 has to lines of answers then 2 spaces then user 2 repeats) I am…
-1
votes
1 answer

Does anyone using Repl.it? Not working another python file

As you know, there is Main.py and we can make a multiple files even yesterday, I made a new file(not Main.py) named so.py and it works well when I press run button but today I try to run like that there is nothing on the result screen
user13129181
  • 55
  • 1
  • 6
-1
votes
1 answer

How to prevent the printed thing from copying itself over and over again in Python? (Repl.it)

The question is about this project: https://repl.it/@LerconnDesign/First-Project I wanted to write a code to print something slowly and not instantly. Basically it prints some part of the actual thing that is going to be printed and adds one letter…
Lerconn Design
  • 43
  • 1
  • 1
  • 8
-1
votes
1 answer

My mongodb database is taking a long period of time to query

So I have a big MongoDB database with like 2358 documents. Whenever I try to query it takes a long period of time and sometimes when I go to the dashboard and try to get the data it shows me this: Image of MongoDB error I don't know how to fix it…
Hackermon
  • 78
  • 1
  • 7
-1
votes
1 answer

How to create a Tkinter taskbar?

I am using repl.it(link to my project) and I am wanting to create a taskbar so that when the user clicks on it the app will be called. To call the functions I am using: button = tk.Button(window, text="Text", …
thedankboi
  • 53
  • 1
  • 8
-1
votes
1 answer

Removing the margin on a picture in html/css

What the page currently looks like and the margin I want to remove I want to remove the white border around the image. I tried a lot of things nothing seems to be working. Here's what I have so far. HTML:
-1
votes
1 answer

How to get content inside an HTML
    From URLwith python

I am trying to make a discord bot using python for my friend’s Warframe clan that scrapes content from the Warframe PC Announcements section. I was wanting to use the discord bot to send it as an Embed in the Discord Chat Here is some code I have…
thedankboi
  • 53
  • 1
  • 8
-1
votes
3 answers

Reverse a string in java on repl.it

I need some help with some code. I am trying to reverse a string which is entered by the user. Could someone have some experience with repl.it please help me. Here is the code that I am using (ignore the first part of the code that already…
eRrOR SaNs
  • 19
  • 2
-1
votes
2 answers

Why is webbrowser.open not working in repl.it?

For a python project I'm using repl.it for a text-adventure game. But webbrowser.open('url went here') is not working in repl.it. It's not opening the web page page. Any idea why?
Oran
  • 45
  • 5