Skip to content
Sign upLog in
Profile icon

Cosmic Wonderhoof

@CosmicWonderhoo
Repls
Community
CosmicWonderhoo
CosmicWonderhoo
shared a Post
2 years ago
1
Various Word's that make you special
Hope you feel good about yourself now remember to read the code.
CosmicWonderhoo
CosmicWonderhoo
shared a Post
2 years ago
1
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 programm
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 ti2 years ago
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
SixBeeps
SixBeeps
You need to set the end parameter for the print function, something like print('h', end='') print('i', end='') `2 years ago