BASICS OF PYTHON

G11_C2

Quiz time!!

x=5
7=y
print(x+y)

SyntaxError: cannot assign to literal

12

NameError: name 'y' is not defined

No output but no error thrown

What would be the output of the following  code:

Syntax :

variable =value

value= variable

Revision time

Importance of programming

Python

Spyder

Input 

Output

Function

5

x

Functions

Variables

Vaccination registration portal

NAME:

AGE:

INDIAN :

WEIGHT:

David

68

72.5

YES 

NO

23

Vaccination registration portal

NAME:

AGE:

INDIAN :

WEIGHT:

David

68

72.5

YES 

NO

Text based data 

String

Number based data

Boolean

Integer

Floating point

Vaccination registration portal

NAME:

AGE:

INDIAN :

WEIGHT:

David

68

72.5

YES 

NO

> 45?

Operator

Operators for comparison

x=x+5
x+=5

Modules

Pic of pencil bag with pens n pencils

Pic of pencil bag with color pens

Made with Slides.com