string = "Northeastern Africa"
myString = string.lower()
index = 0
num_index = int(index)
length = len(myString)
num_length = int(length)
num_length = num_length - 1
while myString[num_index] >= myString[18]:
print(num_index)
print(num_length)
print(myString[num_index])
print(num_index)
num_index = num_index +1
print(myString[0:num_index])
print(" ")
why does it only print "northeastern" and stops at the next space? how do i make it go through the full string without stopping at the space in between both words?
myStringhere?indexandlengthare already integers. There is no need to convert them to integers again.N. Are you sure it doesn't start with an(lowercase)?