I know they are the fundamental parts of a program and this is gunna sound rather stupid, but can someone explain subs and functions and the private keyword

i dont understand how they are used

please answer