+ 2

If I put an argument with def statement then I don't need to call that function, do I? (Py)

def print_with_exclamation(word): print(word + "!") print_with_exclamation("spam") print_with_exclamation("eggs") print_with_exclamation("python") like here they didn't call function

17th May 2018, 1:28 PM
Tanzim Ikram Sheikh
Tanzim Ikram Sheikh - avatar
1 Answer
+ 14
try this code 👇👇 print(print_with_exlamation("spam")) print(print_with_exlamation("eggs")) ........ like this
17th May 2018, 3:14 PM
Ratnapal Shende
Ratnapal Shende - avatar