diff --git a/TEMA4/control.py b/TEMA4/control.py new file mode 100644 index 0000000..2524460 --- /dev/null +++ b/TEMA4/control.py @@ -0,0 +1,26 @@ +import math +import cmath +import time +import random +import string +phase = cmath.phase(0.2+0.8j) +rnd = round(phase,2) +rnd_ = rnd*20 +corteg = (math.floor(rnd_/3),rnd_%3) +print(corteg) +c1 = time.time() +s = time.asctime().split() +hours_minutes = s[3] +hours_minutes = hours_minutes [:-3] +print(hours_minutes) +list_dninedeli = ["Пн", "Вт", "Ср","Чт","Пт", "Сб","Вс"] +print(random.sample(list_dninedeli,3)) +choice = list(range(14,33,3)) +unif = random.choice(choice) +print(unif) +N = round(random.gauss(15,4)) +N = max(1, N) +letters = random.choices(string.ascii_letters, k=N) +print(letters) +c2 = time.time() - c1 +print("Прошло меньше" + math.ceil(c2) + " минуты")