When in doubt about number of arguments, add * before the argument.
def world_cup(*teams):
print(“The World Cup teams are “ + teams[2])
world_cup(“India”, “South Africa”, “Australia”)
Blogger, Engineer & Entrepreneur
When in doubt about number of arguments, add * before the argument.
def world_cup(*teams):
print(“The World Cup teams are “ + teams[2])
world_cup(“India”, “South Africa”, “Australia”)
Facebook Comments