Ask coding questions

← Back to all posts
how to print one letter at a time with python
LOLLIPOP06

Hello people i have a huge question (I am a begginer so take it easy on meh)
so i have to do a project for my school with python and i want to impress my instructors so i want to know how to print one letter at a time for each word and i also want to know how to add colors.
Thanks very much fellow coding peeps

Answered by Bookie0 [earned 5 cycles]
View Answer
Voters
LOLLIPOP06
Comments
hotnewtop
Bookie0

For the one letter at the time, (slowPrint), use this:
The st at the top defines how fast it goes
Also you have to import os, curses, sys

So when you want print something out, do

LOLLIPOP06

@Bookie0 when i go to print nothing happens

Bookie0

You’re not supposed to print it do

@LOLLIPOP06

Bookie0

I correct ur code:


@LOLLIPOP06

LOLLIPOP06

@Bookie0 srry i ment run it

Bookie0

@LOLLIPOP06 does it work now?

LOLLIPOP06

@Bookie0 yes thank you so much

Bookie0

Cool! Also did you try the colors? @LOLLIPOP06

LOLLIPOP06

@Bookie0 gimme a sec let me try

Bookie0
LOLLIPOP06

@Bookie0 it works!!

Bookie0

Noice! Im happy you learnt something! @LOLLIPOP06

Bookie0
multicoder2021

I've been testing with Bookie0's code, and I just shortened it a bit:

ChezTacoz

I know this was already answered but you can also use typwriter

Bookie0

For the colors this is what I do:

So to print something with the colors, do

Hopes this helps you!

syflexer

@Bookie0 wait does that mean i dont have to import colorama to use colors

Bookie0

Uh no you can use my method it’s simpler for me... @syflexer

syflexer

@Bookie0 yes it seems more simple then doing Fore.GREEN + then like having it go for ever until a input or you say to clear the color

Bookie0

Yeah, I’m glad it helped you! :) @syflexer

syflexer

@Bookie0 thank you :}

Bookie0

No prob! @syflexer