
Loading…

Everything this lesson covers — Print vs Return, Single Star Arguments (*args), Double Star Keyword Arguments (**kwargs), Mixed Arguments Order and IPL Total Runs Calculator — in one visual map. Click any topic to open it, or download the full map as an image for revision.
Mind map
Click a topic to open or close it · drag to move · scroll to zoom · the download includes every topic, fully expanded
def sum_print(a,b): print(a+b)def sum_return(a,b): return a+bdef random(*value): print(value)random(10,20,30) outputs (10, 20, 30)def student(**data): print(data)student(name="Munna", age=24) outputs {'name': 'Munna', 'age': 24}def unique(name, *value, city="BIHAR", **data):Call: unique("Munna", 10, 20, city="London", course="CSE")def analyze_run(*scores):Handle no scores: if len(scores) == 0: print("No Match Score Provided")Calculations: len(scores), sum(scores), max(scores), min(scores), total_runs / total_matchesmatches, total, highest, lowest, avg = analyze_run(...)