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?
Home
Python
What is the output of the following?
0
votes
asked
Jun 13, 2019
in
Python
by
Derya
What is the output of the following?
for i in range(5):
if i == 5:
break
else:
print(i)
else:
print("Here")
a. 1 2 3 4 5
b. 0 1 2 3 4
c. 0 1 2 3 4 5 Here
d. 0 1 2 3 4 Here
#python
#ball-python
#java
#python-tutorial
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 11, 2019
by
rajeshsharma
Answer is a
0 1 2 3 4
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?
asked
Jun 13, 2019
in
Python
by
Derya
#python
#ball-python
#java
#python-tutorial
Python-questions-answers
0
votes
Q: What is the output when following statement is executed ?
asked
Jun 13, 2019
in
Python
by
Derya
#python
#java
#ball-python
#python-tutorial
Python-questions-answers
0
votes
Q: What is the output of the following code ?
asked
Jun 13, 2019
in
Python
by
Derya
#python
#python-tutorial
#ball-python
#java
Python-questions-answers
0
votes
Q: What is the output of the following?
asked
Jun 13, 2019
in
Python
by
Derya
#python
#java
#python-tutorial
#ball-python
Python-questions-answers
0
votes
Q: What is the output of the following?
asked
Jun 13, 2019
in
Python
by
Derya
#python
#ball-python
#java
#python-tutorial
Python-questions-answers
0
votes
Q: What is the output of the following?
asked
Jun 13, 2019
in
Python
by
Derya
#python
#python-tutorial
#ball-python
#java
Python-questions-answers
0
votes
Q: What is the output of the following?
asked
Jun 13, 2019
in
Python
by
Derya
#python-tutorial
#python
#ball-python
#java
Python-questions-answers
0
votes
Q: What is the output of the following code ?
asked
Jun 13, 2019
in
Python
by
Derya
#python
#java
#python-tutorial
#ball-python
Python-questions-answers
0
votes
Q: What is the output of the following?
asked
Jun 13, 2019
in
Python
by
Derya
#python
#python-tutorial
#ball-python
#java
Python-questions-answers
0
votes
Q: What is the output when following code is executed ?
asked
Jun 13, 2019
in
Python
by
Derya
#python
#ball-python
#java
#python-tutorial
Python-questions-answers
...