Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. import names
  2. import random
  3. names1 = []
  4. surnames1 = []
  5. ids = []
  6. idsString = []
  7. random.random()
  8. for i in range(0, 30):
  9.     names1.append(names.get_first_name('female'))
  10.     surnames1.append(names.get_last_name())
  11.     ids.append(random.randint(10000,99999))
  12.     idsString.append(str(ids[i]))
  13. for i in range(0,30):
  14.     print('INSERT  INTO PRACOWNICY (ID_PRACOWNIKA, IMIE, NAZWISKO)\n VALUES (\''+idsString[i]+'\',\''+names1[i]+'\',\''+surnames1[i]+'\');\n')
  15. print(ids)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement