Author Topic: Python - Simple Program to Display String  (Read 800 times)


  • Administrator
  • Sr. Member
  • *****
  • Posts: 283
Python - Simple Program to Display String
« on: January 04, 2012, 04:09:14 pm »
Here is simple Python program to input and  display a string

Code: (Python)
#Python Source File

message = raw_input('Your message? ')
print "Your message is:  %s" % (message)

The output would be,
Your message? Welcome to Software & Finance
Your message is: Welcome to Software & Finance


Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer.
Content copyright 2010-2014. Kathiresan. All rights reserved.
This page is using SMF version 2.0.1