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 program :
Home
Python
What is the output of the following program :
0
votes
asked
Feb 11, 2020
in
Python
by
rahuljain1
What is the output of the following program :
def myfunc(a):
a = a + 2
a = a * 2
return a
print myfunc(2)
8
16
Indentation Error
Runtime Error
#python-programming
Python-questions-answers
Please
log in
or
register
to answer this question.
0
Answers
Related questions
0
votes
Q: What is the output of the code shown below?
asked
Jun 13, 2019
in
Python
by
Derya
#python
#python-programming
Python-questions-answers
0
votes
Q: What is the output of the code shown below?
asked
Jun 13, 2019
in
Python
by
Derya
#python
-language
#python-programming
Python-questions-answers
0
votes
Q: How can we create a constructor in Python programming?
asked
May 24, 2020
in
Python
by
SakshiSharma
#python-contructor-
#python-programming
-constructor
Python-questions-answers
0
votes
Q: What type of language is Python? Programming or Scripting?
asked
May 16, 2020
in
Python
by
Robindeniel
#python-programming
#programming-python
Python-questions-answers
0
votes
Q: What is Python?
asked
May 16, 2020
in
Python
by
Robindeniel
#python
#python-language
#language-python
#python-programming
#programming-python
Python-questions-answers
0
votes
Q: What Is A Dictionary In Python Programming?
asked
Dec 14, 2019
in
Python
by
sharadyadav1986
#python-programming
#python-dictionary
Python-questions-answers
0
votes
Q: What Is A Function In Python Programming?
asked
Dec 14, 2019
in
Python
by
sharadyadav1986
#python-programming
Python-questions-answers
0
votes
Q: What is the output of the following program :
asked
Feb 11, 2020
in
Python
by
rahuljain1
#output-python
Python-questions-answers
0
votes
Q: What is the output of the following program :
asked
Feb 11, 2020
in
Python
by
rahuljain1
#python-output
Python-questions-answers
0
votes
Q: What is the output of the following program :
asked
Feb 11, 2020
in
Python
by
rahuljain1
#python-output
Python-questions-answers
...