Question: Can someone help me to correct my code in python programming? I need to validate the user's input using regex. importreasr classValidations: defis_int(number,param): number=r.match([0-9],param) defint_validation(param):
Can someone help me to correct my code in python programming? I need to validate the user's input using regex.
importreasr classValidations: defis_int(number,param): number=r.match("[0-9]",param) defint_validation(param): is_int=r.match("[0-9]",param) ifparam!=is_int: print("NotanInteger") returnFalse else: print() returnTrue x=int_validation(input("Enterx:")) y=int_validation(input("Entery:")) z=int_validation(input("Enterz:")) max=None ifx>yandx>z: max=x elify>z: max=y else: max=z print("Thebiggestofthethreenumbersis%s"%max) print("----------------------------------------------")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
