On 11/02/13 20:07, Pravya Reddy wrote:
def conversion(inch,cm):
"""returns the value in cm and in."""
return (2.54 * float(inches))
return (float(cm) / 2.54)
return exits the function so the second return statement never gets
executed.
def GetInt(prompt):
"""Returns a n
On 02/11/2013 03:07 PM, Pravya Reddy wrote:
Can you please complete the code.
#!/usr/bin/env python
""" One function receives a value in inches and returns the equivalent
value in
cms like cm = 2.54 * in.The other function receives a value in cms and
returns
the equivalent value in inches like i
Can you please complete the code.
#!/usr/bin/env python
""" One function receives a value in inches and returns the equivalent
value in
cms like cm = 2.54 * in.The other function receives a value in cms and
returns
the equivalent value in inches like in = cm / 2.54."""
def conversion(inch,cm):