InterviewSolution
Saved Bookmarks
| 1. |
Conditional Statements in Python |
Answer»
>>> if var == "Good": ... print("Same") ... Same
>>> if var == "Good": ... print("Same") ... elif var != "Good": ... print("Not Same") ... Same
>>> if var != "Good": ... print("Not Same") ... else: ... print("Same") ... Same The final if-elif-else ladder looks like shown below: |
|