Professional Documents
Culture Documents
Class11 - CH 5
Class11 - CH 5
Class11 - CH 5
BY - AYUSH PODDAR
1) Introduction
2) Keywords
3) Identifiers
4) Datatypes
5) Operators
6) Comments
7) Expression
8) Input – Output
9) Type conversion
10) Debugging
CONTENTS
Introduction - Basics -
What is Python ?
Python is a programming language
- Developed by Guido van Rossum in 1997
- Used to develop Games, Websites, Apps, etc.
- Simple and Portable
- Free and Open source
- Case Sensitive KEYWORDS – Reserved Words in Python
- High level language
IDENTIFIERS – Name given to a Variable
- Uses interpreter
Variable – used to store data
Python modes ? A = 5435, Russian = 6000
INTRODUCTION
© Youth Af
Datatypes - Operators -
1. Numeric – ❑ Arithmetic : + - * / ** // %
❑ Int : 45, 69, 0, -1, -50 ❑ Comparison : > < <= >= == !=
❑ Float : 5.24, 2.356, 0.541 ❑ Logical : and or not
❑ Complex : 5 +4j, 36+2j ❑ Assignment : = += -= *= /= //= %=
❑ Boolean : 0, 1 ❑ Identity : is isnot
❑ Membership : in notin
2. Sequence –
❑ String : ‘Lana’, “Daniels”
❑ Tuple :
❑ List :
Comments -
3. Sets – No duplicate items
Comments are lines of code which are ignored
DATATYPES