0

I have a list of strings as given below. I want to access each element.

str_list = ['a.b', 'b.c','c_a']

Expected output:

'a.b'
'b.c'
'c_a'

My code and present output:

for i in range(0,len(str_list)): 
   print(str_list[i])
a
.
b

How to get my desired output?

Mainland
  • 4,110
  • 3
  • 25
  • 56

0 Answers0