So the question I was trying to solve is
"Print the first 4 letters of name on new line [name = 'Hiroto']"
I got a solution, but I was wondering if there was a way to do the same problem using index values to make it work with any name I used.
name = "Hiroto"
new_name = " "
for letter in name:
if letter != "t":
new_name = new_name + letter
if letter == "t":
print(new_name)