Q:

Write a Python program to insert a given string at the beginning of all items in a list

0

Write a Python program to insert a given string at the beginning of all items in a list

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

num = [1,2,3,4]
print(['emp{0}'.format(i) for i in  num])

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now