Last active
April 9, 2021 21:14
-
-
Save pralabhsaxena05/dd333825167cd49f24cafed160a1ad4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#List containing even numbers | |
even_List = [num for num in range(10) if num%2 == 0] | |
#Square of given numbers | |
square_List = [num*num for num in range(10)] | |
print("Even numbers are: ", even_List) | |
print("Squared numbers are: ", square_List) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment