Python is a general-purpose, high-level computer programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java.
Python is a widely used general-purpose, high-level programming language.
Its design philosophy emphasizes code readability, and its syntax allows
programmers to express concepts in fewer lines of code than would be possible
in languages such as C++ or Java. The language provides constructs intended
to enable clear programs on both a small and large scale.
Python supports multiple programming paradigms, including object-oriented,
imperative and functional programming or procedural styles. It features a
dynamic type system and automatic memory management and has a large and
comprehensive standard library.
Python interpreters are available for installation on many operating systems,
allowing Python code execution on a wide variety of systems. Using third-party
tools, such as Py2exe or Pyinstaller, Python code can be packaged into
stand-alone executable programs for some of the most popular operating systems,
allowing for the distribution of Python-based software for use on those
environments without requiring the installation of a Python interpreter.
Python was conceived in the late 1980s and its implementation was started in
December 1989 by Guido van Rossum at CWI in the Netherlands as a successor to the
ABC language (itself inspired by SETL) capable of exception handling and
interfacing with the Amoeba operating system. 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).
About the origin of Python, Van Rossum wrote in 1996:
Over six years ago, in December 1989, I was looking for a 'hobby' programming
project that would keep me occupied during the week around Christmas. My office ...
would be closed, but I had a home computer, and not much else on my hands. I
decided to write an interpreter for the new scripting language I had been thinking
about lately: a descendant of ABC that would appeal to Unix/C hackers. I chose
Python as a working title for the project, being in a slightly irreverent mood (and
a big fan of Monty Python's Flying Circus).
Python 2.0 was released on 16 October 2000, and included many major new features
including a full garbage collector and support for Unicode. With this release the
development process was changed and became more transparent and community-backed.
Python 3.0 (also called Python 3000 or py3k), a major, backwards-incompatible
release, was released on 3 December 2008 after a long period of testing. Many of
its major features have been backported to the backwards-compatible Python 2.6
and 2.7.
Python is a multi-paradigm programming language: object-oriented programming and
structured programming are fully supported, and there are a number of language
features which support functional programming and aspect-oriented programming (
including by metaprogramming and by magic methods). Many other paradigms are
supported using extensions, including design by contract and logic programming.
PyCharm is an Integrated Development Environment (IDE) used for programming in
Python. It provides code analysis, a graphical debugger, an integrated unit tester,
integration with version control systems (VCSes), and supports web development
with Django. PyCharm is developed by the Czech company JetBrains.
It is cross-platform working on Windows, Mac OS X and Linux. PyCharm has a
Professional Edition, released under a proprietary license and a Community Edition
released under the Apache License. PyCharm Community Edition is less extensive
than the Professional Edition.
Licensing:
PyCharm Professional Edition has several license options, which feature same
software functionality and differ in their price and terms of use.
PyCharm Professional Edition is free for open source projects and for some
educational uses. There is also an Academic license which is discounted for other
educational use.
PyCharm Community Edition is distributed under Apache 2 license. The source code
is available on GitHub.
Iam Using Pycharm
for Python
U can use any other IDE.
First of All Install python-3.4.3
.
And Second Install pycharm-community-4.5.3
.
and Goto Start and Select JetBrains PyCharm Community Edition 4.5.3
.
and Select Create New Project
, and in Location:
Give Name MyProject
like
C:\Users\HiLaLs\PycharmProjects\MyProject
, and Click on Create
Button.
When Open then In Lift side Project
Pane Right Click on MyProgram
and
Goto New
-> and Select Python File
.
In New
New Python file Dialog Box Give Name MyProgram
in Name:
Field and
Click on OK
Button.
When MyProgram.py
Pane Open then Remove __author__ = 'HiLaLs'
and Write
Ur Code.
When U Run the Program then Ur .py
Python File MyProgram.py
is in
C:\Users\HiLaLs\PycharmProjects\MyProgram
Directory.
If you want to import any package in python project by pip
you need to goto https://pypi.org/
and search your desired package
like e.g: requests
and select requests 2.31.0
in list. After that copy the command e.g: pip install requests
.
Open command prompt and goto installed python directory. In my case the directory is C:\Users\Bilal Khan\AppData\Local\Programs\Python\Python310\Scripts>
and
past the command pip install requests
and press enter.
Now the command prompt will install the package for you.
You can import the package in your program by adding import requests
at the top of program.
Some of the package like BeautifulSoup
will need to import from library like from bs4 import BeautifulSoup
when adding it at the top of program.
#This is Single Line Comment.
#This is Also Single Line Comment.
''' And This is
Multi Line
Comment. '''
If U Want to Run the Program then Goto Run
and Select Run MyProgram
(Shift+F10)
and If U Debug the Program then Goto Run
and Select Debug MyProgram
(Shift+F9).