Python Tutorial

Tuesday, August 17, 2010

python input

'''
   This code use for python input
'''

data = raw_input("Enter a number: ")
'''
    Now data is a string
    You need to type cast for making this string to integer
'''
print "The number is: ", data

0 comments:

Post a Comment