-
Notifications
You must be signed in to change notification settings - Fork 0
/
1.py
45 lines (36 loc) · 1012 Bytes
/
1.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
# #TODO simple function
# def greet():
# print("Hello")
# print("how do you do name?")
# print("isnt the weather nice today?")
#
# greet()
#
#
# # TODO function that allows for input
# def greet_with_name(name):
# print(f"Hello {name}")
# print(f"how do you do {name}?")
#
# greet_with_name("Ryder")
########### NOTES ################
# def my_function(something):
# # do this with something
# # then do this
# # finally do this
# my_function(123)
## something = 123 # here "something" is the parameter and "123" is the argument.
##################################
# #TODO Functions with more than 1 input
# def greet_with(name, location):
# print(f"Hello {name}")
# print(f"What is it like in {location}")
#
# greet_with("Ryder", "Vancouver?")
# TODO Keyword arguments
# Here we can switch the code around
def keyword(a, b, c):
print(f"a = {a}")
print(f"b = {b}")
print(f"c - {c}")
keyword(c=3, b=2, a=1)