Pls, can some1 help me here? using python to write a function that takes any number of argument (*args) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Pls, can some1 help me here? using python to write a function that takes any number of argument (*args)

the main aim of de func is to subtract the argument(integers) entered. I did mine and it's bulky 😥

9th Sep 2017, 11:43 AM
Justine Ogaraku
Justine Ogaraku - avatar
4 Answers
+ 4
like, could you write the whole stuff
9th Sep 2017, 11:46 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 3
def func(*args): return #whatever stuff you want. Note: Don't do return *args it causes an error do return args
9th Sep 2017, 11:44 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
@Justine: Can you copy/paste your code, or post a link with the code you're working on? So we can give you advice in a better way..
3rd Oct 2017, 9:21 AM
noobcøder
noobcøder - avatar