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

Python

Class 11 IP student
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Python

Class 11 IP student
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Python -

Python is an easy to learn yet powerful object oriented programming language. It is very high level
programming language yet as powerful as many other middle level not so high level languages like C,C+
+,Java.

Interactive Mode in Python(Python IDLE)

Interactive mode of working means you type the command- one command at a time, and the Python
executes the given command there and then and gives you output. Interactive Mode, as the name
suggests, allows to interact with OS. It is convenient for the beginners to work and for testing codes.

Script Mode (Python IDLE)

Script mode is used to create and edit python source file. This mode is used for coding more than few
lines, so as to save the code, modify and reuse it.

Features of Python Programming

i) Python is an object oriented language.

ii) It allows editing and running program from a single interface.

iii) Interactive environment makes it easy to write program.

Spyder IDE

Spyder is a powerful interactive development environment for the Python language with advanced
editing, interactive testing, debugging and introspection features.

Comments

Comments are the additional readable information, which is read by the programmers but ignored by
the Python interpreters.

#This is the program for Fibonacci series

Variables

Named labels, whose values can be used and processed during program run, are called Variables.
Python variables are created by assigning value of desired type to them eg. To create a numeric variable,
assign a numeric value to variable_name; to create a string variable assign a string value to
variable_name.

String

A string data types lets you hold string dat, i.e., any number of valid characters into asset of quotation
marks. Anything that is enclosed in quotes represents string data in Python.

Mutable and Immutable Types

Python data objects can be broadly categorized into two- mutable and immutable types, in simple words
changeable or modifiable and non-modifiable types.

You might also like