-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkaggle3.py
More file actions
46 lines (34 loc) · 1018 Bytes
/
kaggle3.py
File metadata and controls
46 lines (34 loc) · 1018 Bytes
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
# def least_difference(a, b, c):
# diff1 = abs(a - b)
# diff2 = abs(b - c)
# diff3 = abs(a - c)
# return min(diff1, diff2, diff3)
# a = int(input("a: "))
# b = int(input("b: "))
# c = int(input("c: "))
# print (a,b,c, sep='<')
# result = least_difference(a, b, c)
# print("The least difference is:", result)
# def greet(who="Colin"):
# print("Hello,", who)
# greet()
# # greet(who="Kaggle")
# # (In this case, we don't need to specify the name of the argument, because it's unambiguous.)
# # greet("world")
# def mult_by_five(x):
# return 5 * x
# def call(fn, arg):
# """Call fn on arg"""
# return fn(arg)
# def squared_call(fn, arg):
# """Call fn on the result of calling fn on arg"""
# return fn(fn(arg))
# print(
# call(mult_by_five, 1),
# squared_call(mult_by_five, 1),
# sep='\n', # '\n' is the newline character - it starts a new line
# )
# def ruound_to_two_places(x=9.91999):
# return round(x,2)
# a =ruound_to_two_places()
# print (a)