The given question is depending upon the number of inputs given (1 input, 2inputs, or 3) finding the circumference of the circle and perimeter's of rectangle and triangle. I can't seem to figure out how to read the number of inputs give ex: if I give only one input ex:2 the output should be "12.56" and if I give 2 inputs say 2 4 output should be "6"(2*(a+b)) so far I'm done till functions and I'm stuck at inputs
def cir(a):
x=2*3.142*a
return x
def rec(a,b):
y=2*(int(a+b))
return y
def tri(a,b,c):
z=a+b+c
return z
a=b=c=0
print("enter the dimenssions")
a,b,c=float(input()),float(input()),float(input())