Python timer ⏲️

preview_player
Показать описание
Python timer program tutorial

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

import time

running = True
seconds = 10
end = 0

while(running):
print(seconds)
time.sleep(1)
seconds -= 1
if(seconds <= end):
running = False
print(seconds)
print("Happy new year!")

BroCodez
Автор

This also works:

import time
timer = 10
for i in range(10):
print(timer)
time.sleep(1)
timer -= 1
print("Happy new years!")

Potato-ffms
Автор

your videos are great man, keep it up!

milo-urzp
Автор

Hi Sir I am a student of age 15, Can I learn whole Python through your channel?
Can I learn easily at this age through your Channel?

topchannelsandvideoes
Автор

Could you please do python webscraping on an Android device.
PyDroid and/or termux. Preferably on a Samsung device.
Thx

Negitivedeep
welcome to shbcf.ru