English

Write the corresponding Python assignment statement: Assign the average of values of the variable's length and breadth to a variable sum. - Computer Science (Python)

Advertisements
Advertisements

Question

Write the corresponding Python assignment statement:

Assign the average of values of the variable's length and breadth to a variable sum.

One Line Answer

Solution

sum = (length + breadth)/2
shaalaa.com
Variables
  Is there an error in this question or solution?
Chapter 5: Getting Started with Python - Exercise [Page 115]

APPEARS IN

NCERT Computer Science [English] Class 11
Chapter 5 Getting Started with Python
Exercise | Q 2. b) | Page 115
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×