Computer Science, asked by PRANAYCHOWDARY, 4 months ago

Explain about branching statements with example in python?​

Answers

Answered by tejugana
2

Answer:

Branching: using If Else in Python

When the if branch is True, it runs; when the if branch is False, the else branch runs. password = "qwerty" attempt = input("Enter password: ") if attempt == password: print("Welcome") else: print("Incorrect password! ") Run the program again.

Similar questions