vinamelody
BAN USER
Comments (4)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
Python:
def reorder(a,b):
result = dict(zip(b,a))
result = [ x for x in result.values()]
return result
a = ['c','d', 'e', 'f', 'g']
b = [3,0,4,1,2]
print reorder(a,b)
Comment hidden because of low score. Click to expand.
0
of 0 vote
def reverseWords(text):
words = text.split(" ")
reversed_words = reversed(words)
return ' '.join(reversed_words)
Comment hidden because of low score. Click to expand.
0
of 0 vote
#python
def reverseWords(text):
words = text.split(" ")
reversed_words = reversed(words)
return ' '.join(reversed_words)
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Python:
- vinamelody May 13, 2016