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
Read the below program code carefully,
Home
Python
Read the below program code carefully,
0
votes
asked
Sep 25, 2021
in
Python
by
john ganales
Read the below program code carefully,
int1 = 10
int2 = 6
if int != int2:
int2 = ++int2
print(int1 - int2)
What will be the output of this program?
a) 2
b) 4
c) 6
d) None
python-code
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 25, 2021
by
john ganales
b) 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: Read the below program code carefully,
asked
Sep 29, 2021
in
Python
by
john ganales
python-code
Python-questions-answers
0
votes
Q: Read the below program code carefully,
asked
Sep 29, 2021
in
Python
by
john ganales
python-code
Python-questions-answers
0
votes
Q: Read the below program code carefully,
asked
Sep 29, 2021
in
Python
by
john ganales
python-code
Python-questions-answers
0
votes
Q: Read the below program code carefully,
asked
Sep 29, 2021
in
Python
by
john ganales
python-code
Python-questions-answers
0
votes
Q: Read the below program code carefully,
asked
Sep 25, 2021
in
Python
by
john ganales
python-code
Python-questions-answers
0
votes
Q: Read the below program code carefully,
asked
Sep 25, 2021
in
Python
by
john ganales
python-code
Python-questions-answers
0
votes
Q: Read the below program code carefully,
asked
Sep 25, 2021
in
Python
by
john ganales
python-code
Python-questions-answers
0
votes
Q: Read the below program code carefully,
asked
Sep 25, 2021
in
Python
by
john ganales
python-code
Python-questions-answers
0
votes
Q: Read the below program code carefully,
asked
Sep 25, 2021
in
Python
by
john ganales
python-code
Python-questions-answers
0
votes
Q: Read the below program code carefully,
asked
Sep 25, 2021
in
Python
by
john ganales
python-code
Python-questions-answers
...