What the lines mean
print(...) shows text on the screen.
name = input("Your name: ") asks a question, then remembers the answer in a box labeled name. That box is a variable. A variable is a labeled sticky note that holds a value.
print("Hi", name) shows the word Hi, then whatever is on that sticky note.