generated from theschoolofai/epai5session5-template
-
Notifications
You must be signed in to change notification settings - Fork 10
/
sesson5.py
52 lines (32 loc) · 1.33 KB
/
sesson5.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""WRITE PROPER ASSINGMENT DESCIPTION HERE AND DELETE THIS MESSAGE"""
import time
def time_it(fn, *args, repetitions= 1, **kwargs):
"""This is a genralized function to call any function
user specified number of times and return the average
time taken for calls"""
# Repetition should be positive number
pass
def squared_power_list(number,*args, start=0, end=5,**kwargs):
"""Retruns list by raising number to power from start to end
-> number**start to number**end. Default start is 0 and end is 5"""
# Validations "if" block
# Return the list of number to the power of numbers from start to end
pass
def polygon_area(length, *args, sides = 3, **kwargs):
"""Retruns area of a regular polygon with number of sides between
3 to 6 bith inclusive"""
# Validations
# Return area
pass
def temp_converter(temp, *args, temp_given_in = 'f', **kwargs):
"""Converts temprature from celsius 'c' to fahrenheit 'f' or
fahrenheit to celsius"""
# Validations
# Return the converted temprature
pass
def speed_converter(speed, *args, dist='km', time='min', **kwargs):
"""Converts speed from kmph (provided by user as input) to different units
dist can be km/m/ft/yrd time can be ms/s/min/hr/day """
# Validations
# Return the converted speed
pass