Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | None | 0 0
  1. import io
  2.  
  3. def noInputLists():
  4.     i = 0
  5.     c = []
  6.     #Considering that you do not have the vectors yet:
  7.     while (i<8):
  8.         c.append(input("Enter the name you want to add to the A list: \n"))
  9.         c.append(input("Enter the name you want to add to the B list: \n"))
  10.         i += 1
  11.     print(c)
  12.  
  13. def gotInputLists(A, B):
  14.     i = 0
  15.     c = []
  16.     while (i<8):
  17.         c.append(A[i])
  18.         c.append(B[i])
  19.         i += 1
  20.     print(c)
  21.  
  22. choice=input('Do you want to input the names yourself?\n1 - Yes\n0 - No\n')
  23. if (choice == "1"):
  24.     noInputLists()
  25. else:
  26.     Alist = ['Edvaldo', 'Emerson', 'Edinardo', 'Emilson', 'Estrobio', 'Eduardo', 'Everson', 'Edson']
  27.     Blist = ['Gabriela', 'Gerson', 'Gemilson', 'Genson', 'Genivaldo', 'Gorbonildo', 'Gletson', 'Gustavo']
  28.     gotInputLists(Alist,Blist)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement