0% found this document useful (0 votes)
2 views

Python_ch_1

Python is a high-level, interactive, and object-oriented programming language known for its clean syntax and reliability. It has various applications including web development, scientific computing, and software development, and features standard data types like numbers, strings, lists, and dictionaries. Key concepts include variables, constants, literals, identifiers, comments, and various operators.

Uploaded by

gamingrocky751
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Python_ch_1

Python is a high-level, interactive, and object-oriented programming language known for its clean syntax and reliability. It has various applications including web development, scientific computing, and software development, and features standard data types like numbers, strings, lists, and dictionaries. Key concepts include variables, constants, literals, identifiers, comments, and various operators.

Uploaded by

gamingrocky751
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Python_ch_1 : Introduction to python

• Python is a high-level, interactive and object-oriented programming language.


• Python is popular programming language because of it provides more reliability of code, clean syntax of code, advanced
language features, scalability of code, portability of code, support object oriented programming, easy to learn and read, support
GUI mode, interactive, interpreted.
• There are major Python versions namely, Python 2 and Python 3. Python 3.0.
**applications of Python Programming
- Web Applications: We can use Python to develop web applications. It provides libraries to handle internet
protocols such as HTML, XML and JSON, etc.
- Scientific and Numeric Applications: Python is popular and widely used in scientific and numeric
computing
- Software Development: Python is helpful for software development process. It works as a support
language
- Business Applications, Console Based Application, Audio or Video based Applications, 3D CAD
Applications Enterprise Applications, Applications for Images, Education.
M
Features of python :
. Simple and Easy-to-Learn, Interpreted and Interactive, Object-Oriented, Platform Independence, Scalable, extendable,
Dynamic, GUI Programming and Databases, Free and Open Source.’
Standard Data Types :
1. Numbers: Numbers can be integers like 1,2,3 and so on. It represent the mathmaticle function.
2. floats : flots is fractional number like 1.1, 3.4, 3/2, 4/1
2. String: Represents text characters, special symbols or alphanumeric data. String is sequence of characters.
r.
3. List: Represents sequential data.
4. Tuple: Represents sequential data with a little difference from list.
5. Dictionary: Represents a collection of data that associate a unique key with each value.
6. Boolean: Represents truth values (true or false).
7. Set: Set is an unordered collection of unique data items.
8. Dictionary: Dictionary is an unordered collection of key-value pairs.
R
Variables :
• A variable is like a container that stores values that we can access or change.
• A variable is an identifier that holds a value.
• A variable is a name given to a location in the computer's memory location, where the value can be stored that can be
used in the program.
oh
• When we create a variable, some space in the memory is reserved or allocated for that variable to store a data value
in it.
Constants :
• A constant is a type of variable whose value cannot be changed during the execution of program.
Literals in Python:
• Literals are also constant values in Python, which are fixed. A literal refers to the fixed value that directly appears in
the program
it
• Literals are numbers or strings or characters that appear directly in a program.
Identifiers :
• A Python identifier is a name given to a function, class, variable, module or other objects that is used in Python
program.
Comments :
• Comments are used for better understanding a program , Comments are non-executable line in a program.
• there are two types of comments ie. single line comment and multiline comment.
Operators :
Unary Operators (+,-~) , Binary Operators (**, *, /, %, +, -, <>, &, |, ^, , <=, >=, ==, !=, <>),
Arithmetic Operators(+, -, *, /, **, %, //), Assignment Operators( =, +=, -=, *=, /=, %=, **=, //=, )
Relational or Comparison Operators ( == , != , >, <, <=, >=) , Logical Operators(AND, OR,NOT),
Bitwise Operators(&, |, ^, ~, <<, >>), Identity Operators(is, isnot), Membership Operators (in, not in).
Dry Run : • A dry run is the process that programmer trace the value of variables.
• Dry run is a way of testing a process or algorithms for its correctness and simplicity.
it
oh
R
r.
M

You might also like