MisterMr

@MisterMr (1)
MisterMr
MisterMr shared a Post
7 months ago
1
Debug code
Ask
How do I debug code on Replit. All the options I found online haven't worked.
THE TRIVIA
Python
Read full post
RECENT REPLIES
JWZ6
JWZ6 7 months ago
For line 92, hold backspace till the input is on the same line with the (. Hopefully this helps 👍
OldWizard209
OldWizard209 7 months ago
You can also create try except blocks and raise errors on exceptions.
OldWizard209
OldWizard209 7 months ago
You can't debug on replit, you need to manually go through al the code. Replit only tells u the error
MisterMr
MisterMr shared a Post
7 months ago
1
Text in Console Different Than Code
Ask
Screenshot 2021-05-16 11.08.23 AM Can you explain why this is happening and how to fix this?
THE TRIVIA
Python
Read full post
RECENT REPLIES
Coder100
Coder100 7 months ago
It is called line wrapping. If the text is too long, the text wraps, regardless of word. But the input function is also pretty glitchy, here is a fixed version: def input_bettr(p = ''): print(p, end = '', flush = True) return input('') `
MisterMr
MisterMr shared a Post
4 months ago
1
Why does it only spam 4, 2, 1
Ask
I thought it would be fun to make a bot for the 3x+1 theorum but for some reason, no matter what number, it always spams out 4, 2, 1, the end of the s
3x+1 (/2?)
Python
Read full post
RECENT REPLIES
QuantumCodes
QuantumCodes 4 months ago
Did you see veritasium's video? It explains it so well. See if i get 4, 4 = even 4/2 = 2 2 = even 2/2 = 1 1 = odd 3×1+1 = 4 See? It loops.
MisterMr
MisterMr shared a Post
7 months ago
1
Ideas for Repl
Ask
Does anyone have any ideas for a new repl to make?Read full post
RECENT REPLIES
FloCal35
FloCal35 7 months ago
For future ideas use Code Suggester built by me and a few others
ANDREWVOSS
ANDREWVOSS 7 months ago
What language(s) do you use?
MisterMr
MisterMr shared a Post
7 months ago
1
Adding Images In Python
Ask
How do you add images in Python?Read full post
RECENT REPLIES
OldWizard209
OldWizard209 7 months ago
You can't add images directly in Python because it is a console-based language and you can't add images on the console directly. So rather, you will have to use Python's Tkinter Framework. Lemme quickly overview how can you get an image to show in Tkinter. Import Tkinter : from tkinter import * Create the window using Tk class: root = Tk() Create a cavas and pass in the width, height parameters: canvas = Canvas(root, width = 700, height = 700) canvas.pack() Add an image file, only works with pn
MisterMr
MisterMr shared a Post
7 months ago
1
LaterList Question Repeatition For Some Reason
Ask
In my code, it's supposed to delete the question from the list but it doesn't. Could you help fix it?
THE TRIVIA
Python
Read full post
RECENT REPLIES
MisterMr
MisterMr 7 months ago
BTW it makes a Key Error