Creating a Countdown timer using python in 57 seconds | Python project #shorts #python

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Please let me know guys, how's the background music or what other changes should be there in the video?

harshitbhaihackerxguy
Автор

Maybe im misunderstanding but:

import time

t = int(input('How long to countdown for? '))
while t != 0:
time.sleep(1)
t -= 1
print(str(t) + ' seconds left')

print('Countdown over!!!')



Also great video

nathanwatson
Автор

If your code isn't working like mine was and you've checked it and it seems fine, make sure to check your "\r". I had "/r" and it broke it.

RandomEnchantment
Автор

Does not work precise because of the process time...

binkrassdufass
Автор

Nice job, thats what i always wanted to know

filipjukelson
Автор

Harshit bhai one help how to run this timer in background. I mean when user will enter the time but it will be hidden and will count in background
. I am asking this because I want to make quiz with timer. I tried a lot but failed... Can you help me???

cTkinter
Автор

timer works properly, but doesn't show unless I remove the \r in end="\r"

what is it doing and why??

notyouraveragepotato
Автор

Bro how much time to become python developer?!

ramansong
Автор

timer = '{:02d}:{02d}'.format(mins, secs)
KeyError: '02d'

ishanrai
Автор

Harshit aapko kabhi youTube se kabhi pay ment aayi hai?

notylegend