Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

checking if something is true. infinite

import time
bool1 = True
bool2 = False

While True
    if bool1 == True
        print("bool1 true")
        bool1 = False
        bool2 = True
        time.sleep(1)
    elseif bool2 == True
        print("bool1 true")
        bool2 = False
        bool1 = True
        time.sleep(1)
Comment

PREVIOUS NEXT
Code Example
Python :: how to convert input time value to datetime 
Python :: How to run python in command promt 
Python :: python stop running instances 
Python :: convert to string except missing 
Python :: how to sort a list of lists in reverse order using the first parameter in python 
Python :: python list of all definitions in python file 
Python :: How to Remove Items in a Set in Python Using the remove() Method 
Python :: python set strings, lists, tuples 
Python :: Python check if caps lock is pressed 
Python :: Function to stop a while loop 
Python :: Python Tkinter SpinBox Widget Syntax 
Python :: python this module 
Python :: Shallow copy in python and adding another array to list 
Python :: numpy retrieve 5 highest value index 
Python :: Create An Empty List(Array) In Python 
Python :: django not configured pylint error fix 
Python :: convert set to list python time complexity method 1 
Python :: Send Variable Over In Python Views 
Python :: enter three numbers and find smallest number in python 
Python :: database access layer django 
Python :: emi calculator python code 
Python :: python os module using stat 
Python :: quicksort python3 
Python :: travis deployment script for django applications to heroku 
Python :: heads or tails python 
Python :: what is a console in pythonanywhere 
Python :: cudf - merge dataframes 
Python :: fredo illos 
Python :: django composer 
Python :: Reading from a file way02 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =