For and While loops in python.
#Print 1 to 5
for i in range(1,6):
print(i)
#benefits of loops:
#1. Reduces lines of code
#2. Code becomes easier to understand
#Syntax of Python range() function
#Syntax: range(start, stop, step)
#start: [ optional ] start value of the sequence
#stop: next value after the end value of the sequence
#step: [ optional ] integer value, next step value of the sequence
#print all even numbers from 1 to 100
for i in range(1,101):
if(i%2==0):
print(i ,end=" ")
else:
continue
What are loops in python ?
What is for loops ?
What is while loops?
How for loops work?
How while loops work?
What is range in python?
How range function works in python?
#coding #helloworld #logicclassforgeeks #programming #codingclass #learncoding #programminglanguage #basic #computerknowledge #firstcodingclass #loops #forloop #while #whileloop
Nesta página do site você pode assistir ao vídeo on-line For and While loops in python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Logic Class for Geeks 04 Outubro 2025, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 34 vezes e gostou 5 espectadores. Boa visualização!