for i in vl:
if i.startswith("$"):
print(i.split(" ")[0])
I want to store the output of that last print statement as a variable but I don't know how. Trying to save it as a variable within the for loop or after it returns a "doesn't do anything" error.