Maksim Ferreira

@mmf045 (3)
mmf045
mmf045 shared a Post
1 year ago
0
why is when it says `put in a operation` it says `None` at the end
Ask
when it's suppose to slowprint put in a operation it slowprints put in a operation None
Math program
Python
Read full post
RECENT REPLIES
Coder100
Coder100 1 year ago
Hello, two things. First: You have a newline in your slowprint function, don't have a newline. def slowprint(s): for c in s: sys.stdout.write(c) sys.stdout.flush() time.sleep(1./10) Second: if operation == add: equation = input(slowprint("what is the equation?")) this will always be false. Instead: if operation in add: equation = input(slowprint("what is the equation?")) Also, btw, this is will have really weird output: slowprint("put in a operatio") operation = input("n\n") You are b
plscodeinjava
plscodeinjava 1 year ago
Hello @mmf045 The error you are getting is very confusing. However, the issue may be that you cannot get input from a slowprint. Here is the code that worked for me: import sys import time def slowprint(s): for c in s: sys.stdout.write(c) sys.stdout.flush() time.sleep(1./10) if name == "main": slowprint("hello\n") time.sleep(1) slowprint("put in a operatio") operation = input("n\n") Mark this answer as CORRECT if it helped
mmf045
mmf045 shared a Post
2 years ago
0
what is wrong with my code?
Ask
when I say "good" it responds the first response but when I say "bad" it also says the first response. Please help!
conversations
Python
Read full post
RECENT REPLIES
mmf045
mmf045 1 year ago
@medcho I all ready have 100 heath with 277 diamonds XD
mmf045
mmf045 1 year ago
thank you @ChezCoder and @medcho! that will really help!
VulcanWM
VulcanWM 2 years ago
You should probably do    ` if feelings == 'good' or feelings == 'great' or feelings == "I'm good" or feelings == "i'm good" or feelings == "ok" or feelings == "i'm ok" or feelings == "k" or feelings == "Ok" or feelings == "I'm ok": print("good, I'm also good!")    `
mmf045
mmf045 shared a Post
2 years ago
0
Max
Ask
how do you make a module? I don't know:(Read full post
RECENT REPLIES
HackermonDev
HackermonDev 2 years ago
What language?
mmf045
mmf045 shared a Post
9 months ago
1
I'm learning Javascript so can anyone tell me how to add images.
Ask
I am wanting to add some images to my repl. But how can a add them
Learning Javascript
HTML, CSS, JS
Read full post
RECENT REPLIES
L0k3d20uz4
L0k3d20uz4 9 months ago
from what I can tell, you have the wrong source for your image. If you are trying to get that lightbulb pic from "vectorStock.com/14042537" then the correct source should be "https://cdn3.vectorstock.com/i/1000x1000/25/37/realistic-modern-light-bulb-off-vector-14042537.jpg"
Zavexeon
Zavexeon 9 months ago
Hey there, you can upload files and folders by pressing the 3 dots icon next to the new file and folder button, and clicking "Upload File" or "Upload Folder". image