Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeWithHarry/The-Ultimate-Python-Course
/ square
Method
square
Chapter 10 - PS/02_problem2.py:5–6 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3
self.n = n
4
5
def
square(self):
6
print(f
"The square is {self.n*self.n}"
)
7
8
def
cube(self):
9
print(f
"The cube is {self.n*self.n*self.n}"
)
Callers
1
02_problem2.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected