Jed1

splitusernam1

Dec 28th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. fileData=[]
  2. fileData=["'Kofi,chicken'='Ama,cat'='kwame,frog'"]
  3.  
  4. oldData=fileData.split("=")
  5. print (oldData[0])
  6.  
  7. for x in oldData:
  8. newData=oldData.split(",")
  9. for q in newData:
  10. uSername=newData[0]
  11. uSerpassword=newData[1]
  12.  
  13. print (uSerpassword)
  14. print (uSername)
Advertisement
Add Comment
Please, Sign In to add comment