How to accept the integer and float values in same input variable in python?
How to accept the integer and float values in same input variable in python? Question: How to Accept the integer and float values in the same input variable in python def interest_rate(): while True: interest_rate = input("Enter the annual interest rates: ") if interest_rate.isdigit() == True: interest_rate = int(interest_rate) if interest_rate >= 0: break else: …