Inputs how do I create a variable based on user input?

If I define clothes as hat, scarf, shoe. I can print one or all of these elements. How do I ask the player of my code to input a number, word or letter that I can subsequently use. What is your name? Pause, blinking cursor. Let input become player name. Nice to meet you ‘player name’. Etc.