-
-
Save amankharwal/627f88b38d7f4b6fb7ca806d1c871b63 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
a = range(1,21) | |
for i in a: | |
if i % 2 ==0: | |
i = i*2 # Even Number will be multiplied with 2 | |
else: | |
i = i*i # Odd number will be squared | |
print(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment