
# classwork 3 jan---------

# 1 task--------

# def avg_num(*args):
#     summa=0
#     # for i in args:
#     summa=sum(args)/len(args)
#     print(summa)
# avg_num(2,2,2,2)

# def avg_num(*args):
#     summa=0
#     count=0
#     for i in args:
#         summa+=i
#         count+=1
#     avg=summa/count
#     return(avg)
# avg_num(5,5,5,5)

# 2 task---------------

# def module_num(num):
#     if num ==0:
#         return(0)
#     elif num<0:
#         return(num *(-1))
#     else:
#         return(num)
# module_num(-7)

# if num>=0:
#     return number
# return -num

# 3 task------------

# def max_num(first,second):
#     """This function returns max value from two numbers"""
#     if first>second:
#         first)
#     else:
#         print(second)

# print (max_num.__doc__)
# max_num(10,33)

# 4 task---------

# PI = 3.14
# def count_rectangle_sq(length, width):
#     return length * width
    

# def count_circle_sq(radius):
#     return radius **2 * PI

# def count_triangle_sq(high,base):
#     return high * base

# decision=int(input("Please type 1-for rectangle, 2-for circle, 3-for triangle"))

# if decision==1:
#     count_rectangle_sq(50,20)
# elif decision==2:
#     count_circle_sq(40)
# elif decision==3:
#     count_triangle_sq(100,50)
# else:
#     print ("Try again")

# 5 task-----

# def count_sum(num):
#     a=0
#     while num>0:
#         a+=num%10
#         num=int(num/10)
#     return a

# count_sum(22245)

#6 task-------calc
# while True:
#     symb=input("Enter operation you need: -, +, *, /: ")
#     if symb=="exit":
#         break
#     first_num=int(input("Enter first number: "))
#     second_num=int(input("Enter second number: "))
#     if symb=='+':
#         print(first_num+second_num)
#     elif symb=="-":
#         print(first_num-second_num)
#     elif symb=="*":
#         print(first_num*second_num)
#     elif symb=="/":
#         print(first_num/second_num)
#     else:
#         print("Enter correct symbol")
# print("Thank you for choosing our application!")

# 7 task------------
# end=int(input("Enter number: "))
# def fibo(a,b,s):
#     print (a)
#     if a+b<=s:
#         fibo(b, a+b, s)
#     else:
#         print(b)

# fibo(0,1,end)




    








    

