- scratchpad.py
- Unit Test
Test Cases
x/x
Pass | Test | Message | |
---|---|---|---|
- | Test results will show here. | - |
Errors:
Create a function hype_moments
that tracks how often a streamer says ‘Let’s go!’ during their streams. The function takes an integer days
representing the number of streams in a week, and an integer clips_per_day
representing how many clips were recorded each day. For each clip, we simulate the number of ‘Let’s go!’ moments using a pattern where if the clip number is divisible by 2 or 3, it contains a hype moment.
The function should print one line per day: “Stream Day X: Y hype moments” where X is the day number and Y is the total clips with hype moments for that day.
Parameters:
- days
(int): Number of stream days.
- clips_per_day
(int): Number of clips recorded each day.
Returns:
- None: The function prints the hype moment count for each stream day.
Upload an image
Upload from your computer
Or paste a link here
Slides and Notes
No slides available for this video
About
Python 3 Practice
3.11.9 (default, Apr 6 2024, 17:59:24)
[GCC 6.4.0]