+ 11

How I can learn more functions??

I wanna learn more functions in python language but sololearn doesn't have this much...so how should I learn??

20th Apr 2021, 4:53 AM
🔰Saurabh🔰
🔰Saurabh🔰 - avatar
8 Answers
+ 2
Jan Markus own function??...but how??
20th Apr 2021, 5:00 AM
🔰Saurabh🔰
🔰Saurabh🔰 - avatar
+ 2
Jan Markus thank you...
20th Apr 2021, 5:14 AM
🔰Saurabh🔰
🔰Saurabh🔰 - avatar
+ 1
If you wish, you can write your function. For example, you can write a function for addition. Let's write this function. def addition(x,y): z = x+y return z That's all. Then you can use this function while make a simple calculator
20th Apr 2021, 8:52 AM
Kayra Akpınar
Kayra Akpınar - avatar
+ 1
1- try to read snippets of code written by another people 2- read books (python crash course and automate the boring stuff with python are highly recommended) 3- to dive deeper and learn more about this,search for functional programming topics
21st Apr 2021, 5:47 AM
Alaa Aldeen Shammr
Alaa Aldeen Shammr - avatar
+ 1
Read More about functions !
21st Apr 2021, 7:08 AM
Ahmadreza Mozaffary
Ahmadreza Mozaffary - avatar
+ 1
it should be noted that any values asigned to variables within the function will only have that value while the function is being run. if i have a variable, x which is equal to 2, and pass it through a function to give it a value of 1, unless I use return, the variable will still have a value of 2
21st Apr 2021, 10:57 AM
Avalon
+ 1
You may try learning about some in-built functions, w3schools being adequate for more information on that.
21st Apr 2021, 4:35 PM
Calvin Thomas
Calvin Thomas - avatar