Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ Character
Class
Character
28_rusty_python/python/pattern_matching.py:5–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
command =
"bob key sword coin"
4
5
class
Character:
6
def
drop(self, what, where):
7
print(
"dropping"
, what,
"into"
, where)
8
9
def
pickup(self, what):
10
print(
"pickup"
, what)
11
12
character = Character()
13
current_room =
"bedroom"
Callers
1
pattern_matching.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected