Skip to content

make the multiply function strict with floats #6

@thayashi-01

Description

@thayashi-01

def multiply(a, b) -> float:

def multiply(a, b) -> float:
'''
This function returns the product of two numbers

Args:
a: float the first number
b: float the second number

Returns:
float
'''
return a * b

Expected behavior: Returns the float product of two numbers.
Actual behavior: Accepts non-floats and may return unexpected types.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions