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
2
gibbsfreenergy
gibbsfreenergy

I know what you are saying! You want the typewriter effect, where the text comes one by one delated, am I right? Here is the typewriter effect, just copy paste it at the top of the main.py file:

import os import random, curses, sys, time from time import sleep st = 0.04 def sp1(str): for letter in str: sys.stdout.write(letter) sys.stdout.flush() time.sleep(0.06) print()

To make it faster change time.speed(0.06) to time.speed(0.04). To make it slower change time.speed(0.06) to time.speed(0.08).

I hope this helps you and have a great day my friend!

2 years ago
1
CosmicWonderhoo
CosmicWonderhoo

@JosephSanthosh
thank you very much for your answer this code was easy and simple to understand. I went with the fast one with 0.06 in a different repl.

2 years ago