Differentate between the 'if' and 'if...elif' statement in python
Answers
Answered by
1
Answer:
an if-elif-else block is one conditional. Python will try each if/elif in turn until it finds a branch to execute. An if-if-else is two blocks: if and if-else . They are not dependent on each other, and both blocks might execute.
Answered by
0
Explanation:
The if statement doesn't have else part means in if statement it will only specify that it is true or false. But in if else statement if the statement is false then it is specified in else part.
keep smiling ☺️
Similar questions
Computer Science,
1 month ago
English,
1 month ago
Computer Science,
3 months ago
Science,
3 months ago
Math,
10 months ago
Physics,
10 months ago