210k views
2 votes
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.
e) Assign the concatenated value of string variables first, middle and last to variable fullname.

User Cyberience
by
5.1k points

1 Answer

0 votes

a)

length = 10

breadth = 20

b)

sum = 15

c)

fullname = "{} {} {}".format(first, middle, last)

User Davejohnson
by
5.2k points