0

range related doubt! in python.

can someone please help to understand this, for x in range(2,2): if 2%x==0: <------- this condition will be True Or False! and how?? and explain, range(2,2) also!

5th Oct 2020, 5:20 AM
Ankit Chouhan
Ankit Chouhan - avatar
3 Respostas
+ 4
The condition would be true
5th Oct 2020, 5:25 AM
ADITYA KHANDELWAL
ADITYA KHANDELWAL - avatar
+ 3
Condition in *if* statment is true but your program is not even entering the loop.
5th Oct 2020, 5:25 AM
Arsenic
Arsenic - avatar
0
sorry I mistakenly placed 2 in place of x!!
5th Oct 2020, 6:17 AM
Ankit Chouhan
Ankit Chouhan - avatar