Tuesday 25 July 2017

Formatted input statements


1)- Integer input-  

in order to input any integer type of value we use the following syntax -
                 variable=int(input("message "))


2)- Character /String input- 

  in order to input any character/string type of value we use the following syntax -
                 variable=raw_input("message ")


3)-Float input-

  in order to input any float type of value we use the following syntax -


                 variable=float(input("message "))

Here in all above 3 syntax the input value gets stored in the variable(user defined)




Example-



print statement


Print statement

The use of print statement is to print messages and values on the output screen.
                                         syntax:-

                                                      print " message "













         

Sunday 16 July 2017

Getting Started


What is Python ?

Python is  an interpreted high-level programming language  with dynamic semantics that supports object-orientated programming. It was initially developed in the early 1990's by Guido van Rossum and is now controlled by the not-for-profit Python Software Foundation, sponsored by Microsoft and Google.



Why Python ?

Python is a general-purpose, versatile and popular programming language. It's great as a first language because it is concise and easy to read, and it is also a good language to have in any programmer's stack as it can be used for everything from web development to software development and scientific applications.



************************************************************************************************************