fork download
  1. # your code goes here
  2. # your code goes here
  3. x, y= input('입력 :').split('-')
  4. a= ['abc123', 'def456', 'ghi789']
  5. a.append(x)
  6. a.append(y)
  7. a.remove('def456')
  8. print(a[1][-3:], a[2][:-3], sep = ',')
  9. for i in range(3, 6):
  10. print(i, end=' ')
Success #stdin #stdout 0.07s 14124KB
stdin
xyz321-opq654
stdout
입력 :789,xyz
3 4 5