Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

Python

Uploaded by

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

Python

Uploaded by

veddnarayan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PYTHON

Python features and Advantages


Clear Syntax
helps in web developing
Differentiates between lower case and upper case
interpreted programming language
Rich library: Already has predefined functions
Simple and easy
High level Language
Free and license free
Independent program: works on all OS and Hardware

IDLE: IDLE (Integrated Development and Learning Environment) is a tool


provided with Python that allows users to write, execute, and debug Python
programs easily.

Main Points on Modes of Execution in Python

1. Interactive Mode:

o Execute individual statements instantly at the >>> prompt.

o Output is displayed immediately after pressing Enter.

o Useful for testing single-line code.

o Commands cannot be saved for future use.

2. Script Mode:

o Write and save multiple instructions in a file with .py extension.

o Files can be created via the File > New File option.

o Programs are saved and can be executed later.

Applications of Python
data science Machine learning
data analysis Audio and Video application
AI
Education
Web development
Gaming
Business development
Fun with numbers
use “>>>” and use operations

* Multiply
+ plus
- minus
/ division
% remainder of division
** exponent

Echoing String (*)


Repeatedly being displayed for eg. hello * 3= hellohellohello

Tokens: smallest unit in command


keywords (predefined)
identifiers (rules)
Punctuators (symbols)
Operators (define action)
Literals (constant values)
Functions (predefined or user defined)

Single line comments (#)


Multi line comments (“”” ___ “””)

Indexing in Strings: letters having position in form


of integers
common predefined functions
print(): print output on monitor
input(): input by keyboard
len(): length of the string in numbers

You might also like