HelloString = "Python!"
print(HelloString)
StringLen = len(HelloString)
print("String Length: " + str(StringLen))
print("Print in normal order")
for i in range(0, StringLen):
print(HelloString[i])
print("Print in reverse order, negative indexing")
for i in range(1, StringLen+1):
print(HelloString[-i])
output:
![Python exercise: get character in string using negative indexing Python exercise: get character in string using negative indexing](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC5QM8pXFFqJw_EBQCyRutvlfv59r-ia5BHOe1z0jnTv5ET0-ozuB6WyzdNL-tS4v-GWo5UfYMH1dQrTkOCzHyBJr1SsF7dKlIzO0wi2vdvQhY3uNfOMJATMU7N8b5SSWZDQ0Qw8yH14A/s400/PythonString.png)