Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ fizz_buzz
Function
fizz_buzz
06_pattern_matching/python/fizzbuzz.py:13–18 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
11
print(x)
12
13
def
fizz_buzz(x):
14
match x % 3, x % 5:
15
case 0, 0: print(
"FizzBuzz"
),
16
case 0, _: print(
"Fizz"
),
17
case _, 0: print(
"Buzz"
),
18
case _, _: print(
"{}"
, x)
19
20
list(map(fizz_buzz, range(1, 24)))
Callers
nothing calls this directly
Calls
1
print
Function · 0.50
Tested by
no test coverage detected