Python is an open-source programming language, open-source refers to
free availability and cost-effectiveness.
Python is a cross-platform language- it means once the program is
written in python, the same code can be executed on any operating system
platform such as Windows, Linux, Unix, Mac, etc. python is object-oriented
programming.
Python has a very huge library of built-in functions and is easy to
learn. Using the python application will be able to connect to any major
databases such as MySQL, Oracle, or PostgreSQL.
Control structure in python is used to control the run of the python
program. program is basically a set of instructions provided to the system. The
program might be just straight execution or might be skipping a few statements
and continuing run or jumping to statement and then again coming back to the
original statement.
Writing the first
program and executing it
First of all, you
need to have python installed on the machine in order to run python programs.
you can download installed from https://www.python.org/downloads/windows,
you can follow simple instructions from here, once the installation is done,
just verify using the command python
C:\Users\shaik>python
Python 3.10.5
(tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)]
on win32
Type
"help", "copyright", "credits" or
"license" for more information.
>>>
>>>
Once you get confirmation that python is installed, write the below code
in a text file and save it as hello.py
#This is first
program of hello world
print("hellow
world!!! :) ")
Once the writing is done, open command prompt and cd to location when
hello.py is kept.
and run the script/program using python hello.py
In this way,
you can run the python program on your windows machine.
0 comments:
Post a Comment