import time
import random
import os
gl_sl = "F:/Angl_Py2/GL/SL.txt"
gl_zn = "F:/Angl_Py2/GL/ZN.txt"
gl_sl_file = open(gl_sl, "r")
gl_zn_file = open(gl_zn, 'r')
random1 = random.randint(1,38)
word1 = gl_sl_file.readline(random1)
word1_zn = gl_zn_file.readline(random1)
random2 = random.randint(1,38)
word2 = gl_sl_file.readline(random2)
word2_zn = gl_zn_file.readline(random2)
random3 = random.randint(1,38)
word3 = gl_sl_file.readline(random3)
word3_zn = gl_zn_file.readline(random3)
random4 = random.randint(1,38)
word4 = gl_sl_file.readline(random4)
word4_zn = gl_zn_file.readline(random4)
random5 = random.randint(1,38)
word5 = gl_sl_file.readline(random5)
word5_zn = gl_zn_file.readline(random5)
vi_sl = "F:/Angl_Py2/slova.txt"
vi_sl_file = (vi_sl, 'w')
vi_sl_file.write(word1 + " - " + word1_zn )