Saturday, 3 November 2012

Simple Code in Python


## Here is another simple program. In this program i have used a key word "raw_input()" this key word is use to take input from user at run time and data type which i takes is called String. String is collection of Characters. In this program just consider on the syntax of taking value from user and putting the same values on the screen. Specially make a grip on syntax. while syntax of this programming language is very easy than other languages.


name=raw_input('Enter Your Name: ')
age=raw_input('Enter Your Age: ')
occupation=raw_input('Enter Your Occupation: ')
print 'Your Name is "', name,'"'
print 'Your Age is ',age
print 'Your Occupation is ', occupation

No comments:

Post a Comment