[Tutor] Extract Names from string

Dennis Lee Bieber wlfraed at ix.netcom.com
Tue Aug 3 11:34:28 EDT 2021


On Tue, 3 Aug 2021 10:52:12 -0400, "Stephen P. Molnar"
<s.molnar at sbcglobal.net> declaimed the following:

>I appreciate your answer, but I'm afraid that I was not clear in what I 
>want to do.
>
>I read the list of names using:
>
>f = open('Ligand.list_1.csv', 'r') # 'r' = read

	DON'T DO THAT.

	Python has a module just for reading/writing CSV (or similar) file
types.

	Read the library documentation for the csv module:
https://docs.python.org/3/library/csv.html


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed at ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/



More information about the Tutor mailing list