0% found this document useful (0 votes)
34 views2 pages

Notes 230714 155034 2d8

Python can be run in interactive mode or script mode. Interactive mode accepts single lines of code at the prompt while script mode allows blocks of code to be run and debugged line by line (1 sentence). Python is a widely used general purpose programming language initially created in 1991, with a focus on code readability and allowing programmers to express concepts in fewer lines (1 sentence). Data types in Python include integers, floats, and strings, with integers being whole numbers and floats allowing decimals, and strings storing text (1 sentence).

Uploaded by

Ramachandran.R
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)
34 views2 pages

Notes 230714 155034 2d8

Python can be run in interactive mode or script mode. Interactive mode accepts single lines of code at the prompt while script mode allows blocks of code to be run and debugged line by line (1 sentence). Python is a widely used general purpose programming language initially created in 1991, with a focus on code readability and allowing programmers to express concepts in fewer lines (1 sentence). Data types in Python include integers, floats, and strings, with integers being whole numbers and floats allowing decimals, and strings storing text (1 sentence).

Uploaded by

Ramachandran.R
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 interactive mode accepts single line of code you need to write a single statement in front

of python prompt in the Python shell Python Python carry out the result in the Python shell itself

on the other hand the script mode allow you to write a block of code as the Python interpreter
debugs the code line by line and produce output on the Python shell

Introduction to Python and installation:


Python is a widely used general-purpose, high level programming language. It was initially
designed by Guido van Rossum in 1991 and developed by Python Software Foundation. It was
mainly developed for emphasis on code readability, and its syntax allows programmers to
express concepts in fewer lines of code. Python is a programming language that lets you work
quickly and integrate systems more
efficiently.
There are two major Python versions- Python 2 and Python 3.

Data type
The data stored in memory can be of many types. For example, a student roll number is stored
as a numeric value and his or her address is stored as alphanumeric characters. Python has
various standard data types that are used to define the operations possible on them and the
storage method for each of them.
Int, or integer, is a whole number, positive or negative, without decimals, of unlimited
length.

Float , string:

Float, or "floating point number" is a number, positive or negative, containing one or more
decimals.
Float can also be scientific numbers with an "e" to indicate the power of 10.
Strings in Python are identified as a contiguous set of characters represented in the quotation
marks. Python allows for either pairs of single or double quotes.
• 'hello' is the same as "hello".
• Strings can be output to screen using the print function. For example: print("hello").

Variables

Variables are nothing but reserved memory locations to store values. This means that when
you create a variable you reserve some space in memory. Based on the data type of a variable,
the interpreter allocates memory and decides what can be stored in the reserved memory.
Therefore, by assigning different data types to variables you can store integers, decimals or
characters in these variables.
Rules for Python variables:
• A variable name must start with a letter or the underscore character
• A variable name cannot start with a number
• A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9,and _ )•
Variable names are case-sensitive (age, Age and AGE are three different variables)

features of python
1. Free and Open Source

Python language is freely available at the official website and you can download it from the
given download link below click on the Download Python keyword. Download Python Since it is
open-source, this means that source code is also available to the public. So you can download it,
use it as well as share it.

2. Easy to code

Python is a high-level programming language. Python is very easy to learn the language as
compared to other languages like C, C#, Javascript, Java, etc. It is very easy to code in the
Python language and anybody can learn Python basics in a few hours or days. It is also a
developer-friendly language.

3. Easy to Read

As you will see, learning Python is quite simple. As was already established, Python’s syntax is
really straightforward. The code block is defined by the indentations rather than by semicolons
or brackets.

4. Object-Oriented Language

One of the key features of Python is Object-Oriented programming. Python supports


object-oriented language and concepts of classes, object encapsulation, etc.
6. High-Level Language

Python is a high-level language. When we write programs in Python, we do not need to


remember the system architecture, nor do we need to manage the memory

Last modified: 3:50 pm

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy