How to extract values from a string or a sequence

0 votes
how do I extract values from a string using index values?

name = 'EDUREKA'
Mar 6, 2019 in Python by Waseem
• 4,540 points
145 views

1 answer to this question.

0 votes

you could use the statements like

name[index value : ending index]

suppose you want the string 'u'

name[2] 

would get you 'u' in the output.

answered Mar 6, 2019 by Waseem
• 4,540 points

Related Questions In Python

0 votes
1 answer

How to extract or split characters from number strings using Pandas?

You could just simply use a conversion ...READ MORE

answered Sep 18, 2018 in Python by aryya
• 7,440 points
819 views
0 votes
1 answer

How to Parse values from a JSON file?

import json from pprint import pprint with open('data.json') as ...READ MORE

answered Oct 15, 2018 in Python by Priyaj
• 58,100 points
944 views
0 votes
0 answers

How to remove elements from a list that may or may not be present?

In case I want to remove some ...READ MORE

Jun 27, 2019 in Python by Nisa
• 1,090 points
176 views
0 votes
1 answer

How to have values from a List1 into Columns Names and List 2 Values as Index for an Empty DataFrame

Try like this, it will give you ...READ MORE

answered Jul 10, 2019 in Python by Cherukuri
• 32,930 points
295 views
0 votes
2 answers

How to check whether a string contains alphabets or number in Python?

By using isAlpha () to check whether ...READ MORE

answered Jul 13, 2019 in Python by Sheik janibasha
2,760 views
0 votes
1 answer

How do I parse a string to a float or int?

Hii, Python method to check if a string ...READ MORE

answered Apr 13, 2020 in Python by Niroj
• 82,680 points
174 views
0 votes
1 answer

How to list a column of float values from csv file without importing (Python)

Using the default CSV module Demo: import csv with open(filename, "r") ...READ MORE

answered Sep 16, 2020 in Python by Rajiv
• 8,880 points
1,932 views
0 votes
1 answer

how do i print only the last two letters in a string using regular expression in python?

$ to match the end of the ...READ MORE

answered Mar 15, 2019 in Python by Waseem
• 4,540 points
239 views
0 votes
1 answer

how to install pandas in python

it is very basic to install pandas if ...READ MORE

answered Mar 6, 2019 in Python by Waseem
• 4,540 points
431 views