By Dave via Discussions on Python.org at 17Sep2022 09:34:
Thank you to all who took the time to comment and showed patience with
a new Python developer. The below code works !
Again, please use triple backticks:
```
instead of triple tildes:
By Dave via Discussions on Python.org at 17Sep2022 09:34:
Thank you to all who took the time to comment and showed patience with
a new Python developer. The below code works !
Again, please use triple backticks:
```
instead of triple tildes:
Well, well, well. My apologies. It looks like triple tildes (~~~
) are also accepted as code fences.
Dave, sorry about that.
Cheers,
Cameron Simpson
It is great that you made the program working. Just few notes:
else:
branch when you do nothing there. else:
pass
args
which is a tuple and can be iterated the same way as a list. for x in list(args):
return
.Vaclav:
I created this in under 5 mins. This worked perfectly. One line of code ! Thank you for the comprehension suggestion
Bravo!
Just two notes:
myfunc(2, 3, 4)
as the last statement in the cell and the result will be printed automatically.