Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the output of the following code?
Home
Python
What is the output of the following code?
0
votes
asked
Jan 18, 2021
in
Python
by
SakshiSharma
What is the output of the following code?
class A:
@staticmethod
@classmethod
def m1(self):
print('Hello')
A.m1(5)
a) Hello
b) ValueError
c) TypeError
d) AttributeError
python-program
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 18, 2021
by
SakshiSharma
d) AttributeError
...