issues
search
rusher-md
/
learning-python
0
stars
0
forks
source link
Comprehensions
#11
Closed
Adnan0o7
closed
11 months ago
Adnan0o7
commented
11 months ago
Create a list using comp that has all the even numbers up to 30
Create a dict using comp that takes values from the below list as keys and values as its upper case. l = ['x', 'f', 'g', 'h', 'w', 'm'] and = {'x': 'X', 'f':'F', 'g':'G', ..... }
Adnan0o7
commented
11 months ago
Using filter() # Define a function to check
if a number is a multiple of 3