0

Q1. Why tuple ? Q2. Why by just adding a * we can put as much arguments as we want ?

def do(p1,*p2): print(type(p2)) do("apple","banana","mango","Grape") It was asked in a challenge answar = <class 'tuple'>

10th Mar 2020, 1:46 PM
Amit Biswas
Amit Biswas - avatar
1 Odpowiedź