You are on page 1of 16

Class 6 python

th
What is python ?

 Python is an interpreted, object-oriented, high-level programming language with


dynamic semantics. Its high-level built in data structures, combined with dynamic
typing and dynamic binding, make it very attractive for Rapid Application
Development, as well as for use as a scripting or glue language to connect existing
components together. Python's simple, easy to learn syntax emphasizes readability and
therefore reduces the cost of program maintenance. Python supports modules and
packages, which encourages program modularity and code reuse. The Python
interpreter and the extensive standard library are available in source or binary form
without charge for all major platforms, and can be freely distributed.
History of python

 Python was conceived in the late 1980s by Guido van Rossum at Centrum
Wiskunde & Informatica (CWI) in the Netherlands as a successor to the ABC
programming language, which was inspired by SETL, capable of exception
handling and interfacing with the Amoeba operating system. Its implementation
began in December 1989.
Some major features of python

 Python Features and Advantages


• Easy to Code. Python is a very high-level programming language, yet it is effortless to learn. ...
• Easy to Read. Python code looks like simple English words. ...
• Free and Open-Source. ...
• Robust Standard Library. ...
• Interpreted. ...
• Portable. ...
• Object-Oriented and Procedure-Oriented. ...
• Extensible.
 More items...
 •
 26-Jul-2022
Major application of python

 The major application are .

 Build a website
 Develop games
 Program games
 Perform scientific computation
 Develop artificial intelligence application
Variable
A Python variable is a symbolic name that is a reference or pointer to an
object. Once an object is assigned to a variable, you can refer to the object by
that name. But the data itself is still contained within the object. For example: >>>
>>> n = 300.
Datatype

 Data types are the classification or categorization of knowledge items. It


represents the type useful that tells what operations are often performed on
specific data. Since everything is an object in Python programming, data types
are classes and variables are instances (object) of those classes.
interpreter

 You write your Python code in a text file with a name like hello.py . How does
that code Run? There is program installed on your computer named
"python3" or "python", and its job is looking at and running your Python
code. This type of program is called an interpreter
compiler

 The compiler is a special program that is written in a specific programming


language to convert the human-readable language i.e. high-level language
to machine-readable language i.e. low-level language.
sperators

 Sep is a parameter in python that primarily formats the printed statements


in the output screen. Whitespace is the default value of this parameter. It adds
a separator
Print() fuction

 The print() function prints the specified message to the screen, or other


standard output device. The message can be a string, or any other object, the
object will be converted into a string before written to the screen.
Input() fuction

 In Python, we use input() function to take input from the user. Whatever you
enter as input, the input function converts it into a string. If you enter an integer
value still input() function convert it into a string. Syntax: input(prompt)
Scirpt mode

 So, Script mode in Python is where we first write the Python program inside
a script file and execute it after that. We can execute the script of code either
using the command prompt or using Python IDE installed in our system.
Intaractive mode

 Interactive mode is a command line shell which gives immediate feedback
for each statement, while running previously fed statements in active
memory. As new lines are fed into the interpreter, the fed program is evaluated
both in part and in whole.
Arithmetic operator

 Arithmetic operators are used to perform mathematical operations like


addition, subtraction, multiplication and division. There are 7 arithmetic
operators in Python : Addition. Subtraction.
Float and string in python

 Float() is a method that returns a floating-point number for a provided


number or string. Float() returns the value based on the argument or
parameter value that is being passed to it. If no value or blank parameter is
passed, it will return the values 0.0 as the floating-point output.

 In Python, a string is a sequence of Unicode characters. Unicode was


introduced to include every character in all languages and bring uniformity in
encoding. You can learn about Unicode from Python Unicode.

You might also like