PYTHON BASIC
PYTHON
INTRODUCTION
- Every day, we are using some technology. So, we are learning some basic programming languages. so many languages are there, for example C, C++, java, dot net, C#, HTML, VB, etc.,
- Nowadays, Popular AI (artificial intelligence) programs. So, AI is using the Python language.
- We are leaning toward Python programs. It is an open-source software and a popular programming language. It was created by Guido van Rossum and released in 1991.
ü synopsis:
·
How
to install Python and run.
·
What
is Python?
·
What
can Python do?
·
Why
Python?
·
Syntax
of Python and examples
HOW TO INSTALL PYTHON AND RUN
STEPS:
Go to any search engine --> then type the word PYTHON and enter the loading page the result will be shown. You click the first line python download after going to the Python website page will show.
Then the side shows the download Python 3.12.4 button in yellow color. Click the download button and the download is processed then the download is finished and the file. Show the install python 3.12.4(64-bit) dialog box is appearing.
Loading the installation in 100% and then displaying the successful option will be shown the click the close button
Finally, the installation is successful.
How to open and run the Python program go to the taskbar and click the
start button the menu appears then click the option python 3.12.4 open
python interpreted shell will be shown
Type the coding in the shell.
e.g.: print (“WELCOME TO OWL BLOG”)
The output
is:
WELCOME TO OWL BLOG
ANOTHER WAY TO OPEN (COMMAND PROMPT)
Go
to the taskbar -->click the start button --> menu list is shown --> then click Command Prompt --> the open the cmd window
Type the python word in the shell and press enter key.
Directly type the source code.
E.g.: print (“OWL BLOG”)
press enter key
the output is:
OWL BLOG
Python is a popular
programming language.
It is used for:
·
Web development (server-side),
·
Software development,
·
Mathematics,
·
System scripting.
WHAT CAN PYTHON DO?
· A server to create
web applications.
·
It can be used alongside software to create workflows.
·
Connect to database systems. It can also read and modify files.
·
It is used to handle big data and perform complex mathematics.
·
It is used for rapid prototyping, or for production-ready software
development.
WHY PYTHON?
- It works on different OS (Windows, Mac, Linux, Raspberry Pi, etc.).
- It has a simple syntax similar to the English language.
- It has a syntax that allows developers to write programs with fewer lines than some other programming languages.
- It runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
- It can be treated procedurally, in an object-oriented way, or in a functional way.
SYNTAX
print (“some words are typed “)
Example:
print (“OWL BLOG”)
Output:
OWL BLOG
Comments
Post a Comment