#21 Python Tutorial for Beginners | For Loop in Python

#21 Python Tutorial for Beginners | For Loop in Python

Telusko

5 лет назад

1,308,753 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

SaiFoods
SaiFoods - 25.09.2023 07:57

Thanks

Ответить
pratik shah
pratik shah - 13.09.2023 18:19

for i in range(1, 501, 1):
j=i*i
if j<=500:
print(j)

Ответить
Poonam Sharma
Poonam Sharma - 06.09.2023 08:45

a = []
i=1
while i<=500:
a.append(i)
i+=1
for j in a:
if j*j<=484:
print(j*j)

Ответить
Harini Reddy Nagireddy
Harini Reddy Nagireddy - 05.09.2023 20:55

let us know the nested for loop

Ответить
rushdi sami
rushdi sami - 13.08.2023 19:11

task solution:

import math as m
i = ()
for i in range(0,501):
if (i == int(m.sqrt(i)) * int(m.sqrt(i))):
print(i)

I hope it is right

Ответить
Bhavy Jain
Bhavy Jain - 31.07.2023 12:58

Sir you teach awesome but its my humble request to add more questions of every topic to make our concepts crystal clear

Ответить
Shubham Biswas
Shubham Biswas - 29.07.2023 19:35

quiz to print perfect square:
for i in range(1,500):
print(i**2)

Ответить
Lavanya Chilukuri
Lavanya Chilukuri - 29.07.2023 14:18

for i in range(1,500):
print("square number of" ,i, "is",i*i)

Ответить
Coding Devil
Coding Devil - 28.07.2023 17:53

for i in range (1,501):
for x in range(1,25):
if i == (x*x):
print(i)

Ответить
Farook Syed
Farook Syed - 28.07.2023 14:53

Perfect squares numbers between 1-500


import math as m
for i in range(1, 500, 1):
j = i/m.sqrt(i);
if i % j == 0:
print(i)

Ответить
Suvarna Kumari
Suvarna Kumari - 27.07.2023 17:12

Answer-1
for i in range(1,501):
if (i*i)<=501:
print(i*i)

Ответить
Dhruv Shinde
Dhruv Shinde - 20.07.2023 09:06

excellent explanation

Ответить
I,CT, NaWB
I,CT, NaWB - 19.07.2023 14:52

import math
for a in range(500):
b = math.sqrt(a)
if math.ceil(b) == math.floor(b):
print(a)
idk if this is the most efficient but its the only thing i could think of

Ответить
koushik kankala
koushik kankala - 18.07.2023 20:58

for i in range(1,501):
if (i*i<=500):
print(i*i)

Ответить
osas ezomo
osas ezomo - 10.07.2023 14:23

for a in range(1,501):
if a==0:
pass
else:
print(a*a)

Ответить
Ikuyinminu Solomon
Ikuyinminu Solomon - 29.06.2023 10:26

for i in range(1,500):
if m.pow(i,2) < 500:
print(m.pow(i,2))

don't forget to import math

Ответить
sekarmukilan
sekarmukilan - 23.06.2023 17:33

from math import sqrt
for i in range(1,500):
if sqrt(i)%1==0:
print(i)
alternative way

for i in range(500):
if i**2<=500:
print(i**2)

Ответить
570 Raghu
570 Raghu - 13.06.2023 15:45

For loop

Ответить
570 Raghu
570 Raghu - 13.06.2023 15:45

Program not run

Ответить
570 Raghu
570 Raghu - 13.06.2023 15:44

Hello

Ответить
Diamond Memories
Diamond Memories - 13.06.2023 07:31

i=1
res=0
while res<=500:
res=i*i
print(res)
i+=1

Ответить
Mr.Chills
Mr.Chills - 11.06.2023 17:41

for i in range(1,100):
if i*i>500:
break
print(i*i)

Ответить
Lakki Rajkumar
Lakki Rajkumar - 07.06.2023 11:19

Hey Navin thank you for this wonderful video !!!!!! 😊
Be bit slow please 😅 concepts are well clear but you are doing so fast 😂

Ответить
Abhay Singh
Abhay Singh - 05.06.2023 20:33

Want give suggestions tht most of guyz are not able to understand ur language as u speak very fast. No doubt ur teaching style is gud bt atleast u can speak slowly.

Ответить
Ceez Morales
Ceez Morales - 04.06.2023 17:40

Thank you so much Navin! I totally appreciate the pace and thoroughness of your videos. I'll be watching!

Ответить
Meraz Mostafa
Meraz Mostafa - 29.05.2023 20:24

answer to the quiz is:
from math import sqrt
for i in range(1,500,1):
for a in range(1,500,1):
if(sqrt(i)==int(a)):
print(i)

Ответить
Nirmal S
Nirmal S - 25.05.2023 10:03

for i in range(23):
print(i*i)

Ответить
Krishita Gudla
Krishita Gudla - 22.05.2023 20:18

import math as m
for i in range(1,501):
if m.floor(m.sqrt(i))-m.sqrt(i)==0:
print(i,end=" ")

Ответить
ᴀʀᴜɴ
ᴀʀᴜɴ - 21.05.2023 16:14

Thanks Telusko 🌠

Ответить
Adish CT
Adish CT - 09.05.2023 14:58

your explanation is very good sir, i have suggest your playlists to my other friends whose are learning websites.

Ответить
Arbitrary_Clicks & Pics
Arbitrary_Clicks & Pics - 08.05.2023 01:19

Thank you Sir 🙏

Ответить
SJ
SJ - 05.05.2023 22:54

for i in range(1,23):
print(i*i)

Ответить
Tharun Kumar
Tharun Kumar - 21.04.2023 14:57

can you explain do while loop

Ответить
vinay kv
vinay kv - 03.04.2023 11:44

Answer is - for i in range(1,50,2):
print(i)

# output is
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49

Ответить
Siddhant Raj
Siddhant Raj - 23.03.2023 14:31

for i in range(1,500):
if i<=22:
print(i**2)
else:
break

Ответить
Abhishek Sawant
Abhishek Sawant - 15.03.2023 10:52

learning from you sir

Ответить
Arun Kumar
Arun Kumar - 05.03.2023 16:11

Solution for E1
# print all the perfect square number between 1 and 500
for i in range(1,501):
if i**0.5 == int(i**0.5):
print(i, "is a perfect square")

Ответить
just_a_normal_guy
just_a_normal_guy - 02.03.2023 17:59

For loops here way better than java

Ответить
vinita arya
vinita arya - 21.02.2023 20:54

Best explanation of for loop. Will never get confused. Thankyou so much

Ответить
Tech vinayak In telugu
Tech vinayak In telugu - 15.02.2023 16:32

thanks for the video

Ответить
Ash
Ash - 12.02.2023 13:19

Bro you are a life saver

Ответить
Arzu Baykan
Arzu Baykan - 10.02.2023 17:35

Thanks a lot your videos really so useful!

Ответить
Chetan Singh
Chetan Singh - 10.02.2023 05:03

Loving this series

Ответить
Dina
Dina - 03.02.2023 19:42

Good explanation

Ответить
meaninglessnowadays
meaninglessnowadays - 02.02.2023 20:14

answer:
for i in range(1, 501):
if i ** 0.5 % 1 == 0:
print(i)

Ответить
Volund the_Smith
Volund the_Smith - 26.01.2023 02:14

Import math
I=1
for I in range (0, 501) :
if math. sqrt(I) = = int(math.sqrt(I) :
print (I)

Ответить
Poonam Bhatt artzzi
Poonam Bhatt artzzi - 22.01.2023 06:53

Hi, plz tell me how to write 3 statements in for loop and assign a new value
And if cindition which will run after loop completion in the same prog

Ответить
Ruben Eihwaz
Ruben Eihwaz - 17.01.2023 12:25

I wonder if I can use this for a list of lists. If I have some data I want to write to a CSV, maybe I could use a for loop that references each list and writes it as a line in the CSV

Ответить