Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

ring For Loop

for identifier=expression to expression [step expression]
        Block of statements
next
Comment

ring For Loop

# print numbers from 1 to 10
for x = 1 to 10  see x + nl  next
Comment

ring For Loop

# Dynamic loop
See "Start : " give nStart
See "End   : " give nEnd
See "Step  : " give nStep
For x = nStart to nEnd Step nStep
        see x + nl
Next
Comment

ring For Loop

# print even numbers from 0 to 10
for x = 0 to 10 step 2
        see x + nl
next
Comment

ring For Loop

# print even numbers from 10 to 0
for x = 10 to 0 step -2
        see x + nl
next
Comment

ring For in Loop

for identifier in List/String  [step expression]
        Block of statements
next
Comment

ring For in Loop

aList = 1:10    # create list contains numbers from 1 to 10
for x in aList  see x + nl  next  # print numbers from 1 to 10
Comment

PREVIOUS NEXT
Code Example
Python :: ring Delete Item From List 
Python :: ring Copy Lists 
Python :: ring Conversion Number 
Python :: ring retrieves the list of all algorithms supported by Encrypt()/Decrypt() functions. 
Python :: protilipi get text python 
Python :: qtextedit unicode 
Python :: word cloud mape python 
Python :: python rational numbers 
Python :: ring Desktop, WebAssembly and Mobile Using QTreeView and QFileSystemModel 
Python :: equivalent of geom smooth function in python using plotline lib 
Python :: size of variable 
Python :: python loc id in list 
Python :: discord rich presence python 
Python :: consider a string note: "welcome" statment will rais error 
Python :: funtools rougly equivalent to, internal 
Python :: ax text relative coordinates 
Python :: phobia of butterflies 
Python :: Flask - store object directly in a session [duplicate] 
Python :: dynamo python templete path 
Python :: keras name layers 
Python :: remove stopwords python 
Python :: show all of a truncated dataframe jupyter" 
Python :: numpy prod 
Python :: Aminul 
Python :: changing correlation encoding values 
Python :: add js file in web.assets_backend 
Python :: As a general rule in python 
Python :: Django is MVT Not MVC 
Python :: Print feature importance per feature 
Python :: How to Add Elements to a dictionary using the update() method 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =