Functions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Functions

I know that functions are groups of statements, but I don’t understand much else. If someone could help me, I would appreciate it. Thanks!

2nd Jan 2019, 3:13 AM
TheRealEpic21
4 Answers
+ 3
Basically programmers tried to implement DRY (Dont repeat yourself) That function ease us in making something that used in general.
2nd Jan 2019, 3:22 AM
ShortCode
0
Thanks
2nd Jan 2019, 3:32 AM
TheRealEpic21
0
functions are instructions which let us use small word to do some repeated instructions. For exemple, we want to print to screen "Hello everyone!... " then print "how are you" its cool if we could use small magical word that print it wherever i use it and print it without writing it again and again. lets call this function Greeting, now when i write Greeting compute will print "hello everyone" etc...
2nd Jan 2019, 3:57 AM
Azeddine Hamdaoui
Azeddine Hamdaoui - avatar
0
Thanks Azeddine
2nd Jan 2019, 4:00 AM
TheRealEpic21