Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import *
- #2
- print(min(list(zip(map(lambda x: (10 - 2 * exp(x))/(sin(x) + 1), range(-10, 11)), range(-10, 11))))[1])
- #3
- with open("text_3_1.txt") as file:
- s = file.readlines()
- print(*list(int(i) for i in s if int(i) % 2 == 1), sep=', ')
- #4
- with open("test_4_1.txt") as file:
- s = file.readline().split()
- print("Различных слов: ", len(set(s)))
- print(sorted(set(s)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement