Informatics Practices
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.
Python Funda
2 Likes
Answer
(a)
a = 10
(b)
a = b = c = 10
(c)
x = 20
x = x - 5
y = x
Answered By
2 Likes
Related Questions
Write a program to find area of a triangle.
Write a program to input a number and print its first five multiples.
Write a program to read details like name, class, age of a student and then print the details, firstly in the same line and then in separate lines.
Write a program to read three numbers in three variables and swap first two variables with the sums of first and second, second and third numbers respectively.