how to get rid of the ends of a word in python while a def code example Example: python while true loop while True: print("Hi")