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
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: What is the output of the following code?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
python-program
Python-questions-answers
0
votes
Q: What is the output of following code?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
python-program
Python-questions-answers
0
votes
Q: What is the output of following code?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
python-program
Python-questions-answers
0
votes
Q: What is the output of the following code?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
python-program
Python-questions-answers
0
votes
Q: What is the output of the following code?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
python-program
Python-questions-answers
0
votes
Q: What is the output of the following code?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
python-program
Python-questions-answers
+1
vote
Q: Print the following pattern
asked
Feb 15, 2021
in
Python
by
SakshiSharma
python-pattern
python-program
python
Python-questions-answers
+1
vote
Q: Print the following pattern in python
asked
Feb 15, 2021
in
Python
by
SakshiSharma
python-program
python-code
python-function
Python-questions-answers
+1
vote
Q: Print the following pattern in python
asked
Feb 15, 2021
in
Python
by
SakshiSharma
#python-pattern
python-function
python-program
Python-questions-answers
+1
vote
Q: Print the following pattern in python
asked
Feb 15, 2021
in
Python
by
SakshiSharma
#python-pattern
python-program
python-function
Python-questions-answers
...