Python Extra-1
Python Extra-1
s=(a+b+c)/2
area=(s*(s-a)*(s-b)*(s-c))*0.5
import random
print(random.randint(0,9))
def countdown(time_sec):
while time_sec:
mins, secs = divmod(time_sec, 60)
timeformat = '{:02d}:{:02d}'.format(mins, secs)
print(timeformat, end='\r')
time.sleep(1)
time_sec -= 1
print("stop")
countdown(5)