Created
December 10, 2021 06:43
-
-
Save pralabhsaxena05/44b1857fb484efb82b7cd5d049259d25 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 = [number for number in range(10) if number%2 == 0] | |
#Square of given numbers | |
square_List = [number * number for number 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