title: input in python to be only in string
body: <p>I am a beginner in Python so kindly do not use complex or advanced code.</p>
  
  <p>I have three <code>if</code> conditions to which I want certain responses, and I want my code to give only one response.</p>
  
  <ol>
  <li><p>First I want the input to only answer in string not in integer or float</p>
  
  <pre><code>f = input("Please enter your name :")
  </code></pre></li>
  <li><p>it should give an error if an integer or float is given</p>
  
  <pre><code>if type (f)== int or float :
      print("Invalid entry")
  </code></pre></li>
  <li><pre><code>if f=="" :
      print("Invalid input. Your name cannot be blank. ")
  </code></pre></li>
  </ol>
  
  <p>I have already tried </p>
  
  <pre><code>f = str(input("Please enter your name :"))
  </code></pre>
  
  <p>it is not working my code still accepts the ans in integer and string.</p>
  
  <p>If I give the string input it gives me the following response:</p>
  
  <pre><code>if type (f)== int or float :
      print("Invalid entry")
  </code></pre>
  
  <p>I am a beginner so I might have made a lot of mistakes. Your patience would be appreciated.</p>