title: New to programming, need help regarding if - elif input in python
body: <p>I'm new here and I'm self teaching python to myself. Here's a code I've written so far. I'm trying to get a random input from the user. However, I don't understand which command to pass in if statement.</p>
  
  <pre><code>user = input("Enter your name: ")
  
  for n in user:
      if user == input(user);
      print ('Name Entered')
  
  else:
      print('Enter a name.')
  </code></pre>
  
  <p>Thanks.</p>
  
  <p>[Edit]: Sorry for the trouble. So I've basically seen examples where we type names in the list and then carry on with if statement. I'm trying to make a code where a user inputs a random name and upon entering the name the result comes out as ' Name Entered ' else ' Enter a name' if there is no input provided by the user.</p>