.What is the meaning of "while True :" while doing in a loop.

0 votes

Hey guys I have just started learning python since the last week could anyone pls tell me. What is the meaning of "while True :" while doing in a loop.

Oct 7 in Python by Rajiv
• 4,980 points
24 views

1 answer to this question.

0 votes

The body of the loop will continue to execute unless you break from the loop or return something from it.

The while construct says that after while, there should be a condition. But in your case, you are mentioning that the condition is True

answered Oct 7 by Gitika
• 50,660 points

Related Questions In Python

0 votes
1 answer

What is the meaning of “int(a[::-1])” in Python?

Assumming a is a string. The Slice ...READ MORE

answered Aug 27, 2018 in Python by Priyaj
• 57,700 points
262 views
0 votes
0 answers

what is the scope of the variable in a conditional statement?

what are global and local variables in ...READ MORE

Apr 17, 2019 in Python by Waseem
• 4,540 points
170 views
0 votes
0 answers

What is the use of cursor while querying a sqlite database?

I am completely new to sqlite, and ...READ MORE

Jul 4, 2019 in Python by Waseem
• 4,540 points
53 views
0 votes
0 answers

What is the syntax for an empty while loop in python?

What kind of ambiguities are expected for ...READ MORE

Aug 5, 2019 in Python by Waseem
• 4,540 points
174 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,564 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,800 points
1,186 views
0 votes
1 answer

What is the function to randomize the items of a list in-place?

Hello @Roshni, Python has a built-in module called ...READ MORE

answered Jun 26 in Python by Gitika
• 50,660 points
100 views
0 votes
1 answer

what is the use of // operator in Python? Can anyone explain?

Hi, @Roshni, It is a Floor Divisionoperator, which ...READ MORE

answered Jun 23 in Python by Gitika
• 50,660 points
66 views