List Comprehension Help- Python
Go to solution
Solved by fizzlesticks,
You can use anything you would would use in a normal if statement.
if wkd[1] == 'Sunday' or wkd[1] == 'Saturday'
or
if wkd[1] in ('Sunday', 'Saturday')
-
Featured Topics
-
Topics
-
7
-
Bonznumber1 ·
Posted in Windows0 -
0
-
aqarwaen29 ·
Posted in CPUs, Motherboards, and Memory2 -
13
-
3
-
IBM_THINKPAD_R51 ·
Posted in Servers, NAS, and Home Lab0 -
5
-
1
-
1
-
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now