@riddhi.luthra wrote:
Statistical Mean doesn’t work in both the cases: blank inputs and string inputs
However, my exception handling only works in one of these:
- try:
print(sts.mean())except ValueError as ve:
print(type(ve).name,"->",ve)
StatisticsError -> mean requires at least one data pointException Handling works successfully here.
- But not in the next case:
Can someone help me out here, as to why this happens?
Posts: 2
Participants: 1