MCPcopy
hub / github.com/imnowdevops/ddc-material / time_activity

Function time_activity

16.Python/Python-Scripts/modern.py:22–33  ·  view source on GitHub ↗

Input: Multiple values for minutes, key=value pair activity Output: Return sum of minutes + random minute spect on a random activity

(*args, **kwargs)

Source from the content-addressed store, hash-verified

20 print("Enjoy the party")
21
22def time_activity(*args, **kwargs):
23 """
24 Input: Multiple values for minutes, key=value pair activity
25 Output: Return sum of minutes + random minute spect on a random activity
26 """
27 # print(args)
28 # print(kwargs)
29 min = sum(args) + random.randint(0, 60)
30 # print(min)
31 choice = random.choice(list(kwargs.keys()))
32 # print(choice)
33 print(f"You have to spend {min} Minutes for {kwargs[choice]}")

Callers 1

call-modern-2.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected