Computer Science, asked by swetha3369, 10 months ago

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 namansethi1
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