Question-83: When you run below program what would happen or printed?
A=10
B=12
if A>=B:
print("A is Bigger than B")
print("I dont think so, this is correct")
if A<B
print("A is Smaller than B")
print("Yes, this is correct")
1.
A is Smaller than B
Yes, this is correct
2.Get all Questions and Answer from here
3.You need to have paid subscription to access all questions
4.Thanks for considering Python Certification Material
Answer: F
Exp: This program would generate error. Because in second if condition missing colon “:” at the end of if condition.
For if condition to be used
- Not if is the keyword to check your condition.
- After “if” keyword you must have space.
- Then you write your comparison or condition.
-
You can access to full explanation to question and answer from this page.