11computer Science-Python Fundamentals-Assignment
11computer Science-Python Fundamentals-Assignment
11computer Science-Python Fundamentals-Assignment
COMPUTER SCIENCE
PYTHON FUNDAMENTALS
ASSIGNMENT
Q2.What are literals in Python ? How many types of literals are allowed in Python?
0.452
x,y = 7,2
x,y,x=x+1,y+3, x+10
print(x,y)
i) Serial_no. v) Total_Marks
b) Assign the sum of values of variables length and breadth to a variable sum.
a) num1 = 4
num2 = num1 + 1
print(num1,num2)
num1 = 2
b) x,y = 7, 2
print(x,y)
c) x,y = 2,6
x,y = y, x+2
print(x,y)