CBSE Class 11 Informatics Practices Question 91 of 102

Python Programming Fundamentals — Question 52

Back to all questions
52
Question

Question 39

Write Python codes for the following statements:

(a) Assign value 10 to variable a.

(b) Assign value 10 to variables a, b and c.

(c) Assign value 20 to x and delete 5 from x and assign the variable x to y.

Answer

(a)

a = 10

(b)

a = b = c = 10

(c)

x = 20
x = x - 5
y = x