Quick actions

cmd+k|ctrl+k

Navigation

Languages

2025/10/22 P86 Ex01

Snippet info

Language

Python

Visibility

public

Author

kwahmail

Created

2025-10-22T11:37:47.82969Z

Updated

2025-10-22T13:45:49.541933Z

length = input ("Please input the length of rectange in cm :")
height = input ("Please input the hight of rectange in cm :")
if length == " or height == " :
    print ("no input values")
elif length.isdigit() == False or height.isdigit() == False:
    print("wrong input value")
else:
    result = float(length) * float(height)
    print(f"result : \n The area of rectangle : \t {result} cm sq")
INFO