title: How to implement While loop in Python
body: <p>I am trying to learn python from scratch and while doing a practice on While loop, I got stuck on implementing it in my simple program as we do in C# in Do While loop.
  Actually I have a Simple program which prompt user to enter his Mobile number and if Length of the mobile number is less then 10 digits, <strong>then it would display a message like &quot;Enter a valid Number&quot; and after that it will again ask to enter Mobile Number</strong>.</p>
  <pre><code>print(&quot;Please Enter your Mobile Number&quot;)
  
  mobilenum = input(&quot;Mobile Number:\n&quot;)
  
  while(True):
  
      if(len(mobilenum)&lt; 10):
          print(&quot;Please Enter a valid Mobile Number&quot;)
          break
  else:
  
      print(mobilenum) 
  </code></pre>
  <p><strong>In my case, If I enter less then 10 digits then the program gets stopped and not asking to enter number again</strong></p>
  <p>Please suggest the proper code.</p>