Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python loop through array step size 2

myList = [1,2,3,4,5,6]
i = 0
while i < len(myList):
  print(myList[i])
  i+=2
  
Comment

PREVIOUS NEXT
Code Example
Python :: find most frequent element in an array python 
Python :: how to take input from user in python 
Python :: pandas difference between dates 
Python :: django order by 
Python :: python dict sort by value 
Python :: stock market api python 
Python :: flask get value of radio button 
Python :: sklearn logistic regression get probability 
Python :: python argparse type date 
Python :: pause python 
Python :: python correlation between features and target 
Python :: python tabulate float format 
Python :: how to make a numpy array 
Python :: tkmessagebox not found 
Python :: TypeError: exceptions must derive from BaseException 
Python :: python find all elements of substring in string 
Python :: python get first day of year 
Python :: set pytesseract cmd path 
Python :: print index of tuple python 
Python :: pandas series quantile 
Python :: python run command and read output 
Python :: Python Tkinter Canvas Widget 
Python :: pyspark groupby multiple columns 
Python :: The int type in Python3 cannot represent a number greater than 2^31-1. 
Python :: 2 distinct numbers random number generator python 
Python :: python compute SSIM 
Python :: python turn off printing 
Python :: python sort two key 
Python :: get rid of unnamed column pandas 
Python :: build dataframe from dictionary 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =