A. def fun:: This is incorrect because there should be parentheses () after the function name, even for a parameterless function.
C. fun function():: This is incorrect because the syntax is not valid. The function definition must start with the keyword def.
D. function fun():: This is incorrect because, again, it doesn't follow the proper syntax. The function definition starts with def, not function.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
akumo
1 month, 2 weeks ago