[Tutor] How to get the element from a list

David bouncingcats at gmail.com
Wed Nov 13 18:32:08 EST 2019


On Thu, 14 Nov 2019 at 09:46, Eggo why <eggo at hotmail.com> wrote:
>
> I have a list like this "line = [{'logname; : 'c:/tmp/alert', 'creationTime': 1573664115985},{'logname; : 'c:/tmp/audit', 'creationTime': 1573664115985}]" and I would like to retrieve the "logname" from it.  What is the easiest way to do so?

Step 1: fix the mismatched quotes.


More information about the Tutor mailing list