-
-
Save nuke99/74da77c87b767d35ac5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME = ['john','max','peter','selena'] | |
GENDER = ['male','male','male','female'] | |
DATE = ['11/02/2011','11/02/2011','11/02/2011','11/02/2011'] | |
#output I want ------------- | |
#names = [ | |
# ["john","male","11/02/2011"], | |
# ["max","male","11/02/2011"], | |
# ["peter","male","11/02/2011"], | |
# ["selena","female","11/02/2011"] | |
# ] | |
names = [] | |
count = 0 | |
while count < Name.length | |
name << [NAME[count],GENDER[count],DATE[count]] | |
count +=1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment