0
Can anyone write me the full code of below code?
while True: print("This statement will run endlessly") print("This statement will also run endlessly") I need the full code of it so that it runs.
4 ответов
+ 1
RH Tasin True is python keyword that is used for checking true conditions.
Lets take a example
n=2
if n%2==0:
print('even')
In this python checks boolean value for given condition. If you run this [print(n%2==0)] it will print True means your condition is
if n%2==0 will equal to if True
Check this code for true values. I used bool function whic is used to return true/false on based on given value
https://code.sololearn.com/coAaE3H9U9Vh/?ref=app
check that last value in the list in given code it is storing as True not 4%2==0
hope it will help🙂
0
AKSHAY but I haven’t set any condition here. So how is it working?