Q1. Why tuple ? Q2. Why by just adding a * we can put as much arguments as we want ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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
0 Réponse