Computer Science, asked by Anonymous, 4 months ago

While using conditional statements in a program,how many times can the elif keyword can be used

Answers

Answered by allysia
2

Answer:

You can use as many elif statements you want to in a program.

Explanation:

The syntax goes like:

\\\tt if\ condition: \\\tt  {\qquad statement\ 1}\\\tt elif\ condition: \\\tt  {\qquad statement\ 2}\\\tt elif\ condition: \\\tt  {\qquad statement\ 3}\\\tt . \\\tt . \\\tt .\\\tt elif\ condition: \\\tt  {\qquad statement\ n}\\\\\tt else:\\\tt  {\qquad statement\ n+1}

And there's no limit to how many you can use in a specific program.

Similar questions