Getting Started With Python
Getting Started With Python
● Python programming language was developed by Guido Van Rossum in February 1991.
● It was named after the famous BBC comedy show Namely Monty Python's Flying Circus.
● Python was based with two Rossum on in February 1991 or influenced with 2
programming languages.
○ ABC language, a teaching Language created. as replacement of BASIC, and.
○ Modula-3
● Pluses of Python:
○ Easy to use - Python is a compact and very easy to use object-oriented language
with very simple syntax rules. It is a very high-level language and it is thus
very-very programmer-friendly.
○ Expressive Language - Python is an expressive language - fewer lines of code
and simpler syntax. For example, consider the following two sets of code:
# NOTE:- Python is an interpreted language, that is, all the commands you write are interpreted
and executed one by one.
Input:
Output:
Hello World!
We wrote two statements but the output was only one sentence. The reason is that any
line that begins with a “#” symbol is a comment in Python. That is, it is for The
programmer’s understanding/information only; Python will completely ignore all the lines
starting with a #.
● Understanding print():
To print or display output, Python 3x provides the print() function. The print() function can
be used as:
print(<objects to be printed>)
For example,
It prints,
Hello World
It will print,
My name is Suresh
Both these strings are valid in Python. Strings can be enclosed in double-quotes or in
single quotes but it has to be ensured that the closing and the opening quotes are of the
same type.