Open IDLE; File --> NewFile
Type the below code.
name= input('Enter the required name: ')
#name is a variable; input
print('Entered name is: ',name)
Save the File and then Run.