Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

How do I make the letters parallel to each other?

CosmicWonderhoo
CosmicWonderhoo

I would like to make the letters parallel to each other with delay and without having the word print out all at once. Please my fellow python programmers help meh.

2 years ago
You are viewing a single comment. View All
4
Coder100
Coder100

Hey, it appears you are trying to use a slowprint?

import time def typewriter(text, delay=0.1): for letter in text: print(letter, end='', flush=True) time.sleep(delay) print() typewriter("I'm being typed at a rate of 0.1 seconds") typewriter("I'm being typed at a rate of 0.05 seconds", 0.05)

The second parameter is optional and is in seconds. It defaults to 0.1.

2 years ago
1
CosmicWonderhoo
CosmicWonderhoo

@Coder100
thank you very much I'm very grateful because you solved my issue it was kind of hard for me to figure out at first but since it was just python it took five min. I will make sure to credit you when I finish this.

2 years ago
1
gibbsfreenergy
gibbsfreenergy

@Coder100
Is there a difference between this and typewriter?

2 years ago
2
Coder100
Coder100

no problem!! :D Happy to help

@CosmicWonderhoo

2 years ago
1
Coder100
Coder100

they can be used interchangeably

@JosephSanthosh

2 years ago