Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import io
- def noInputLists():
- i = 0
- c = []
- #Considering that you do not have the vectors yet:
- while (i<8):
- c.append(input("Enter the name you want to add to the A list: \n"))
- c.append(input("Enter the name you want to add to the B list: \n"))
- i += 1
- print(c)
- def gotInputLists(A, B):
- i = 0
- c = []
- while (i<8):
- c.append(A[i])
- c.append(B[i])
- i += 1
- print(c)
- choice=input('Do you want to input the names yourself?\n1 - Yes\n0 - No\n')
- if (choice == "1"):
- noInputLists()
- else:
- Alist = ['Edvaldo', 'Emerson', 'Edinardo', 'Emilson', 'Estrobio', 'Eduardo', 'Everson', 'Edson']
- Blist = ['Gabriela', 'Gerson', 'Gemilson', 'Genson', 'Genivaldo', 'Gorbonildo', 'Gletson', 'Gustavo']
- gotInputLists(Alist,Blist)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement