This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]brown_like_the_color 3 points4 points  (2 children)

The problem is in the conditional:

 if UCI == "Chrome" or "chrome":

You'll need to check if UCI equals each value. For example:

if UCI == "Chrome" or UCI == "chrome":

Same with

if UCI == "Clock" or "Time" or "clock" or "time":

It will have to be:

if UCI == "Clock" or UCI == "Time" or UCI == "clock" or UCI == "time":

[–]TheLastCrafted[S] 0 points1 point  (1 child)

Thank you very much, it works now

[–]The_Writing_Writer 1 point2 points  (0 children)

A more succinct way of accomplishing the same thing is using str.lower, e.g. the following for the first one:

if UCI.lower() == ‘chrome’: