import random
def c_to_k(array):
new_array = []
for i in array:
new_array.append(i + 273.15)
return new_array
a = []
i = 0
while i < 6:
a.append(random.randint(1, 32))
i += 1
print("По Цельсию:", a)
print("В Кельвинах:", c_to_k(a))
import random
def c_to_k(array):
new_array = []
for i in array:
new_array.append(i + 273.15)
return new_array
a = []
i = 0
while i < 6:
a.append(random.randint(1, 32))
i += 1
print("По Цельсию:", a)
print("В Кельвинах:", c_to_k(a))