import random
name = input("Enter your last name: ")
w = random.randint(0,len(name)-1)
txt = name[0:w]
txt1 = name[w:]
print(txt1+" "+txt)
I hope this helps!
4.5m questions
5.8m answers