0

How to get Index of a index

['Ab','cd','ef','gh'] These are strings in a list. How to output 'b' from above list using index or any other way.. Use only python

16th Jun 2021, 1:04 PM
Ishara Malshan De Silva
Ishara Malshan De Silva - avatar
2 Respostas
+ 4
a=['Ab', 'cd', 'ef', 'gh'] print(a[0][1])
16th Jun 2021, 1:10 PM
Abhay
Abhay - avatar
+ 2
arr=['Ab','cd','ef','gh'] Print (are[0][0]) 0utput=b
17th Jun 2021, 6:53 AM
Hailseme Abi
Hailseme Abi - avatar