Test if input is number or string
Im new to python, and Im struggling with a code here.
How do i test if the user input is a number or a string?
i = raw_input("Type a number = ")
if not a number:
The ( If not a number ) is where i need my code..
|All times are GMT +1. The time now is 09:30 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.