If I want to get the ACGJ in the string 'AABCDEFGHHIJ' and display it in one line, how to slice and print the result
The following is my code:
s='AABCDEFGHHIJ'
a=s[1:5:2]
b=s[7:12:4]
template='a{}'
result=template.format(b)
print(result)
The above is my code and I don't know what went wrong