Print Even Numbers using One Line Python Code #shorts #coding #programming

preview_player
Показать описание

If you found this video useful please give it a thumbs up and subscribe to my channel! and If you have any questions regarding this video, please ask them in the comment section. thanks for watching! :)

Follow Us:

#shorts #coding #programming

DISCLOSURE: This video and description might contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

[Intro Song Credit]
Valence - Infinite [NCS Release]
Рекомендации по теме
Комментарии
Автор

Mine is shorter I guess 🤷
x = 0
while x<=10:
if x%2==0:
print(x)
x+=1

GameZ-dm
Автор

Hey, I'm a big fan of your channel and I learnt a lot and still learning, I was curious to know how you records your short videos? Its amazing seriously

thebetapower
Автор

print([i for i in range (2, 11, 2)])

nubikaboba
Автор

I'm new to how this works but could you use something with [::2] so it skips every other thing?

foxyhighlands
Автор

(print(i) for i in range(1, 100) ) this prints the numbers correctly but yours just returns a list because of you used a generator

yusufkiriseditor
Автор

print("2, 4, 6, 8, 10" if True else "World")

ElderMoro
Автор

I use python to build automated trading systems for cryptocurrency.

johnbobbypringle