May-06-2020, 08:42 AM
(This post was last modified: May-06-2020, 10:15 AM by pyzyx3qwerty.)
Generally, I wouldn't use
def yell_this(phrase = "Hey you"):Instead, I would use :
def yell_this(phrase):However, you can do it any way you want - it's your choice. Then later, you can either define the phrase and call the function like :
phrase1 = "Hey you!" yell_this(phrase 1)Or you can also do :
yell_this("Hey You!")Either of the 2 ways, output will be same
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs