n = len(name) # it might be wise to store this
if n <= 4: # as you have already
...
elif n <= 7: # you already know n > 4 here; no need to test for that
...
else: # you already know n > 7 here; this should be else
...
Also, since you're using Python 2.7, you want raw_input()
instead of input()
.