PushingScores/00-draft-push-it-2.py
2019-05-12 05:15:33 +01:00

37 lines
617 B
Python

wordlist = ["vehicule", "of", "performance"]
timelist = [2,8,19]
idlist = ["17","3","1"]
l = []
for (word, time, uniqueid) in zip(wordlist,timelist, idlist):
# l1=[c for c in word]
#multiply the term by the number of its id
l1= (word + " ")*int(uniqueid)
l2=uniqueid
l3 = "\t"*time
#multiply the term by the time
l1= (word + "\t")*time
l2=uniqueid*time
l3 = "\t"*time
l.append(l1+" "+l2+l3)
l = ''.join(l)
score = str(l)
print(score)
# file = open("copy.txt", "w")
# file.write(score)
# file.close()
# print(l3)
# print(str(l1))
# print(l2)