normal code example
Example: normal
#using while loop
n = 49
while n > 0:
print(n)
n -= 2
#using range(start, end,step)
for num in range(50,0,-1):
if num %2 != 0:
print(num)
#normal
nums = list(range(50))
nums = nums[::-2]
print(nums)
#using while loop
n = 49
while n > 0:
print(n)
n -= 2
#using range(start, end,step)
for num in range(50,0,-1):
if num %2 != 0:
print(num)
#normal
nums = list(range(50))
nums = nums[::-2]
print(nums)