0

Pass arguments from list?

How can I solve this guys? I want to create an instance of a class that the arguments are elemnts from a list. https://code.sololearn.com/cfR5R28WsJKN/?ref=app

14th Aug 2019, 8:05 AM
sam
sam - avatar
1 Answer
0
num = Number(*num_list) print(num.a, num.b, num.c, num.d) # 1 2 3 4
14th Aug 2019, 10:48 AM
Diego
Diego - avatar