Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # f = open("1.txt", "w")
- #
- # f.write("Hello, world!")
- #
- # f.close()
- # f = open("1.txt")
- #
- # print(f.read())
- #
- # f.close()
- # matr = []
- # with open("1.txt") as f:
- # n = f.read().split("\n")
- # for i in n:
- # m = i.split(" ")
- # m = list(map(int, m))
- # matr.append(m)
- #
- # for i in matr:
- # for j in i:
- # print(j**2, end=" ")
- # print()
- matr = []
- with open("1.txt") as f:
- matr = [list(map(int, i.split(" "))) for i in f.read().split("\n")]
- for i in matr:
- for j in i:
- print(j**2, end=" ")
- print()
- m = [1,2,3,4,5,6]
- print(list(map(, m)))
- #9, 10 перед изучением ооп
Add Comment
Please, Sign In to add comment