Selection#
Indentation defines blocks in Python.
Iteration#
forloop withrange(start, stop, step)- stop is excluded.whileloop runs as long as the condition is true.breakexits the loop;continueskips to the next iteration.
if-elif-else से शर्तों के अनुसार निर्णय लिए जाते हैं। for लूप range() के साथ निश्चित बार चलता है और while लूप शर्त सही रहने तक। break लूप से बाहर निकालता है और continue अगली पुनरावृत्ति पर ले जाता है।
Common programs#
Prime check, factorial, Fibonacci series, palindrome number, Armstrong number, patterns with nested loops.
Exam tips#
- Output questions with range() steps and break/continue are very common.