Skip to content
Sign upLog in
Profile icon

ShadedFlame

@ShadedFlame
Repls
Community
ShadedFlame
ShadedFlame
shared a Post
2 years ago
5
Typewriter Python
How would I do a python typewriter? I know it would be something like a = input('blah') for i in a: print a time.sleep(0.25) But that would out
UniqueOstrich18
UniqueOstrich18
Here is a simple typewriter program, made in python 3: import readchar,os characters = [] def refresh(): os.system("clear") string = "" string = string.join(characters) print(string) while True: char = readchar.readkey() if char == readchar.key.BACKSPACE: try: del characters[len(characters)-1] except: pass elif char == readchar.key.ENTER: characters.append("\n") else: characters.append(char) refresh() Output: image You can run it at: https://repl.i2 years ago
noodles37
noodles37
are you talking about a slow print function? if so, here is a link: https://repl.it/@SilentShadowBla/slowprint2 years ago
UniqueOstrich18
UniqueOstrich18
You can use the readchar module to read key inputs. This does work on repl.it and is quite simple.2 years ago
ShadedFlame
ShadedFlame
shared a Post
3 years ago
1
Messing with some turtle! Upvote if you like it! Do in a large screen!
Playing with turtle
Python (with Turtle)
ShadedFlame
ShadedFlame
shared a Post
3 years ago
1
It says there is something wrong with the final output... What did I do wrong?
Gem Sales Calc (Broken)
Python
ShadedFlame
ShadedFlame
Because I'm using this for a site that needs [pywindow] Sorry3 years ago
CodingCactus
CodingCactus
get rid of the [pywindow] at start and end and final output should be print("The price is "+ str(Sum) +".")3 years ago
CodeLongAndPros
CodeLongAndPros
Why do you have3 years ago
ShadedFlame
ShadedFlame
shared a Post
3 years ago
1
Simple Calculator Adds, Subtracts, Multiplies, Divides.
Calculator
Python
CodingCactus
CodingCactus
the validation doesn't really work as you probably intended, should be more like this: while choice > 5: choice = input("Invalid.\nEnter choice(1/2/3/4/5): ")3 years ago
ShadedFlame
ShadedFlame
shared a Post
3 years ago
11
Formerly broken. Thanks to a bunch of helpful users its up and running! ---TIMMY--- Timmy is a simple response program. Just for fun... Thanks to: T
SeashellTepidRedundancy
Python
holylemonaple
holylemonaple
so timmi stands for something it's Talking Interface Manually Manipulated Intelligence and the manipulation process is really tiresome im sorry3 years ago
holylemonaple
holylemonaple
i had taken a break but now imma finish my version of timmy dont worry im citing you3 years ago
holylemonaple
holylemonaple
im back 3 years ago
ShadedFlame
ShadedFlame
shared a Post
3 years ago
2
I'm working on python, and when i say "if a == 'whatever': e = 2 The a == whatever works fine. its the e = 2 that messes up? What am I doing wron
Variable failure
Python
AV4CAD0
AV4CAD0
In the repl that you have linked, it seems that you have written the following: v == 'good!' This is what is causing the error as when you assign values to variables, you need to use 1 = sign, whereas if you are checking if one value is equal to another, you need 2 equals signs (==). Additionally, in your code, you have written: if x == 'yes' or 'y': I may be wrong here, but I think that if you want to check if a value is equal to x or y (where x is your first value and y is your second), you n3 years ago
ShadedFlame
ShadedFlame
shared a Post
3 years ago
5
I am fairly new to python, but am working on my first big project... Would anyone like to collab? I'll accept anyone brand new to experenced! It is al
mesquite2234
mesquite2234
I can. I've coded an RPG game with a save and load dictonary2 years ago
VedanntSarker
VedanntSarker
i would but a have no experience coding RPG's3 years ago
ShadedFlame
ShadedFlame
shared a Post
3 years ago
1
When you put in which player type you want to be the program posts all three things that you have been asigned as. I want it to asign each seperately
Python RPG
Python
ShadedFlame
ShadedFlame
Couldn't figure something out. I deleted it because it was a small part...3 years ago
UniqueOstrich18
UniqueOstrich18
Exactly what is the problem? I can see that the code is running fine.3 years ago
ShadedFlame
ShadedFlame
shared a Post
3 years ago
1
Normal folders' letters are black and white... the ones with the python symbol are colored how to i make the python symbol folder?
UniqueOstrich18
UniqueOstrich18
If you want the interpreter to put "the python symbol" on your python files, put .py at the end of the file name. Example: "program.py" instead of "program"3 years ago
ShadedFlame
ShadedFlame
shared a Post
3 years ago
1
Hi guys, I'm making this "Timmy" but I have a problem... How do I make it work the second time? It works fine the first question but the second it say
SeashellTepidRedundancy
Python
scottdang
scottdang
You only called it once on line 52 and don't seem to have any way to loop the main() which is why you get the error. A way you can do so infinitely with no user input is to call main() inside of main(). Building on this idea, you can have a conditions at the end of the main() choose to continue or stop the main() loop via calling depending on the user-input.3 years ago
ShadedFlame
ShadedFlame
Also, is anyone else brand new to python? Do you want to learn python together? I find it tricky to figure things out just by tutorials...3 years ago