How to remove the first N characters of a string in Python

1 Answer

0 votes
s = "python programming"

print(s)

N = 3
s = s[N:]

print(s)




'''
run:

python programming 
hon programming 

'''

 



answered Feb 5, 2021 by avibootz
edited Feb 5, 2021 by avibootz
...