Skip to main content

Posts

Showing posts with the label Python

Python Crash Course : Part 2

For learning core of any programming language it is necessary to learn three fundamental types of language constructs : 1.        Sequential Statements 2.        Control Statements 3.        Iterative Statements It is just that simple , only three things to learn .Cool !! Sequential Statements in Python ·          Variables (memory) are integral part of any algorithm implementation. ·          There is no need of declaring data type of the variable used, Python implies the data type based on context. Which is similar in Scripting language like JavaScript[here we use 'var' keyword]. Example : x=1 , x=’string’ , x=0.000 . Based on type of data at RHS the datatype of variable is implied. ·          INPUT and OUTPUT constructs in Python  : INPUT : ...

Python Crash Course : Part 1

HISTORY :  Written by Guido Van Rossum in 1980s, i.e Guido started writing Python in 1989 December. Van Rossum is Python's principal author, and his continuing central role in deciding the direction of Python is reflected in the title given to him by the Python community,  benevolent dictator for life  (BDFL). INSTALLING PYTHON :  The python interpreted which can be downloaded from website www.python.org (https://www.python.org/download/releases) CHECKING SUCCESSFUL INSTALL : Open command prompt. Type " assoc .py " , without quotes. That should return ".py=Python.File Cool ! Up and Running to write the scripts !