0

I am have some issues with something I thought it should be pretty straightforward in python. So I have this code:

import numpy as np
a = ["n","alpha"]
a = np.array(a)
print(a[0])
print(a[1])
a[0] = a[0]+"+"+a[1]
print(a[0])

The output of this is:

'n'
'alpha'
'n+alp'

Why is that last output like that instead of 'n+alpha' and how can I make it the way I want? Thank you!

martineau
  • 112,593
  • 23
  • 157
  • 280
BillKet
  • 518
  • 7
  • 18

0 Answers0