Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Print characters from a string that are present at an even index number

word = input('Enter word: ')
size = len(word)
for i in range(0, size, 2):
    print("index[", i, "]", word[i])
Comment

PREVIOUS NEXT
Code Example
Python :: Python program to count Even and Odd numbers using while loop in a List 
Python :: python using os module file name from file path 
Python :: selenium select svg python3 
Python :: python get global variable by name 
Python :: how to use with statementin python 2.4 
Python :: python if nan 
Python :: how to skip number in while loop python 
Python :: twitter scraping python 
Python :: remove items from list while iterating python 
Python :: python time a task 
Python :: python sort list by rule 
Python :: permutation in python 
Python :: python second element of every tuple in list 
Python :: how to maximize the screen in selenium 
Python :: 151 problem solution 
Python :: Python Print Variable Using the f-string in the print statement 
Python :: unpacking tuples in python 
Python :: python list of dict change dicts id by position in list when moved 
Python :: interface in python 
Python :: python resample and interpolate 
Python :: open textfile separated by whitespaces python 
Python :: Sort for Linked Lists python 
Python :: django delete table data 
Python :: python sys environment 
Python :: .size pandas 
Python :: Pivot Spark data frame using python 
Python :: maximun row and columns in python 
Python :: how to run mac terminal from python script 
Python :: how to import something in python 
Python :: django iterate manytomanyfield template 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =