[Tutor] null inputs

ADRIAN KELLY kellyadrian at hotmail.com
Thu Mar 15 15:19:16 CET 2012


Hi guys, 
how do i prevent a user from leaving a blank when inputting?
 
e.g. 
age=int(input("what age are you? ")).................. i want to stop the user pressing enter!!!!
 
if age==""?????

 
  
Adrian Kelly 
1 Bramble Close
Baylough
Athlone
County Westmeath

0879495663
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120315/7c94c380/attachment.html>


More information about the Tutor mailing list