[BangPypers] Basic of basic question
L Radhakrishna Rao
satishsagar83 at gmail.com
Tue May 7 06:36:40 CEST 2013
Which version of python you are using?
In python 2.x, you have to use raw_input
In python 3, it is input.
Usually, the type is taken care automatically, you don't have to worry
about the variables type in python.
On Tue, May 7, 2013 at 9:09 AM, Gora Mohanty <gora at mimirtech.com> wrote:
> On 7 May 2013 07:19, Umesh Tiptur <umeshreloaded at yahoo.com> wrote:
> > Hi,
> > I am very new to programming in python. But I want to know is user hass
> inputted a number or a string
> > Please help with this HOW to..
> * You can use type( var ) to find the type of a variable, var
> * Typically, one should not need to know the type of a variable
> * This is a very basic question that can be answered by a book
> or an online learning resource. Searching Google would find
> this, for example.
> BangPypers mailing list
> BangPypers at python.org
More information about the BangPypers