python_math_stat/practica/povtorProverka.py
2023-09-26 23:36:26 +03:00

39 lines
1.1 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# format
# float_res= 1000/7
# print (float_res)
# print ("The result is {0}".format(float_res))
# print ("The result is {0:1.3f}".format(float_res))
# print ("The result is {0:10.3f}".format(float_res))
# # tables вернуться к уроку и узнать как форматнуть
# print ('''{0.10.2f} {1.10.2f} {2.10.2f}
# {3.10.2f} {4.10.2f} {5.10.2f}
# '''.format(3.5666, 2.53666, 3.55555, 4.55555, 5.55555, 6.55555))
# x1 = [ 1, 3, 1, 3, 7, 8, 9, 10, 12, 12, 13, 18, 20, 19 ]
# x2 = [2, 6, 2, 6, 14, 16, 18, 20, 24, 24, 26, 36, 40, 38]
# print(len(x1))
# print(len(x2))
# k = []
# for i in range(14):
# k.append(x2[i] - x1[i])
# print(all(k[i] == x1[i] for i in range(len(x1))))
'''Узнаем среднее значение выборки'''
# s = list(map(int, input().split()))
# print(sum(s) / len(s))
# # проверка работы методов с sets
# list = [1,3,45,68,2]
# set_list= set(list)
# add= set_list.add(777)
# print(set_list)
# clear = set_list.clear
# print (clear)
list = [1,2,3,4,5]
for numbers in list:
print (numbers)
print ('Hi')