# your code goes here#Чтение из текстового файла
print(" ")
text_file = open("read_it.txt", "r")
text_file.close()
print(" ")
text_file = open("read_it.txt", "r")
print(text_file.read(1))
print(text_file.read(5))
text_file.close
print(" ")
open("read_it.txt", "r")
whole_thing = text_file.read()
print(whole_thing)
text_file.close()
print(" ")
text_file = open("read_it.txt", "r")
print(text_file.readline(1))
print(text_file.readline(5))
text_file.close()
print(" ")
text_file = open("read_it_txt", "r")
print(text_file.readline())
print(text_file.readline())
print(text_file.readline())
text_file.close()
print(" ")
text_file = open("read_it.txt", "r")
for line in text_file:
print(line)
text_file.close()
input("press enter")
IyB5b3VyIGNvZGUgZ29lcyBoZXJlI9Cn0YLQtdC90LjQtSDQuNC3INGC0LXQutGB0YLQvtCy0L7Qs9C+INGE0LDQudC70LAKCnByaW50KCIgIikKdGV4dF9maWxlID0gb3BlbigicmVhZF9pdC50eHQiLCAiciIpCnRleHRfZmlsZS5jbG9zZSgpCnByaW50KCIgIikKdGV4dF9maWxlID0gb3BlbigicmVhZF9pdC50eHQiLCAiciIpCnByaW50KHRleHRfZmlsZS5yZWFkKDEpKQpwcmludCh0ZXh0X2ZpbGUucmVhZCg1KSkKdGV4dF9maWxlLmNsb3NlCnByaW50KCIgIikKb3BlbigicmVhZF9pdC50eHQiLCAiciIpCndob2xlX3RoaW5nID0gdGV4dF9maWxlLnJlYWQoKQpwcmludCh3aG9sZV90aGluZykKdGV4dF9maWxlLmNsb3NlKCkKcHJpbnQoIiAiKQp0ZXh0X2ZpbGUgPSBvcGVuKCJyZWFkX2l0LnR4dCIsICJyIikKcHJpbnQodGV4dF9maWxlLnJlYWRsaW5lKDEpKQpwcmludCh0ZXh0X2ZpbGUucmVhZGxpbmUoNSkpCnRleHRfZmlsZS5jbG9zZSgpCnByaW50KCIgIikKdGV4dF9maWxlID0gb3BlbigicmVhZF9pdF90eHQiLCAiciIpCnByaW50KHRleHRfZmlsZS5yZWFkbGluZSgpKQpwcmludCh0ZXh0X2ZpbGUucmVhZGxpbmUoKSkKcHJpbnQodGV4dF9maWxlLnJlYWRsaW5lKCkpCnRleHRfZmlsZS5jbG9zZSgpCgpwcmludCgiICIpCnRleHRfZmlsZSA9IG9wZW4oInJlYWRfaXQudHh0IiwgInIiKQpmb3IgbGluZSBpbiB0ZXh0X2ZpbGU6CglwcmludChsaW5lKQp0ZXh0X2ZpbGUuY2xvc2UoKQppbnB1dCgicHJlc3MgZW50ZXIiKQo=