Mamdani’s early years in Kampala were brief but formative. His family lived there until he was about seven, when they relocated to the United States.