Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python while loop

# while True loop
while True:
	print("This will continue to print this forever")
    
# while variable loop
value = 5
while value = 5:
	# Since this is true, this will continue on forever
    print("Yes")
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #python #loop
ADD COMMENT
Topic
Name
8+1 =