Write the corresponding Python assignment statements:
a) Assign 10 to variable length and 20 to variable breadth.
b) Assign the average of values of variables length and breadth to a variable sum.
c) Assign a list containing strings ‘Paper’, ‘Gel Pen’, and ‘Eraser’ to a variable stationery.
d) Assign the strings ‘Mohandas’, ‘Karamchand’, and ‘Gandhi’ to variables first, middle and last.
e) Assign the concatenated value of string variables first, middle and last to variable fullname. Make sure to incorporate
blank spaces appropriately between different parts of names.
Answers
Answered by
22
Answer:
a) length, breadth = 10,20
b) sum = (length + breadth)/2
c) stationary =['Paper','Gel Pen','Eraser']
d) first,middle,last = "Mohandas","Karamchand","Gandhi"
e) fullname = first +" "+ middle +" "+ last
Explanation:
I hope it helps you.
if helped mark me as brainliest.
Similar questions
Math,
4 months ago
Hindi,
4 months ago
Math,
4 months ago
Computer Science,
9 months ago
India Languages,
9 months ago
Math,
1 year ago