Advertisement
biswasrohit20

na

May 2nd, 2021
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def Convert(namelist, targetfile):
  2. file = open(namelist,"r")
  3. target = open(targetfile,"w")
  4. number = 1
  5. for line in file:
  6. name = line[:-1]
  7. print(name)
  8. target.writelines(f"Hello, {name}, you are the #{number}\n")
  9. number += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement