About 1,690,000 results
Open links in new tab
  1. 40 Important Questions of While loop in Python (Solved) Class 11

    May 12, 2021 · Programs of while loop in Python Q17. Write a program to check whether a number is Armstrong or not. (Armstrong number is a number that is equal to the sum of cubes of its digits for example : 153 = 1^3 + 5^3 + 3^3.)

  2. While Loop In Python Notes for Class 11-12 CBSE Python

    For example, the following code uses a while loop to repeatedly ask the user for input until they enter a non-empty string or type “quit”: while True: user_input = input("Enter something (or type 'quit' to exit): ") if user_input == "": print("You didn't enter anything!") elif user_input == "quit": break else: print("You entered:", user_input)

  3. 1. While Loop It is used to execute a block of statement as long as a given condition is true. And when the condition become false, the control will come out of the loop. The condition is checked every time at the beginning of the loop. Syntax while (condition): statement [statements] e.g. x = 1 while (x <= 4): print(x) x = x + 1

  4. NCERT Solutions for Class 11 Computer Science (Python) – Conditional ...

    while loop : Repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body. for loop : Execute a sequence of statements multiple times and abbreviates the code that manages the loop variable. nested loops : You can use one or more loop inside any another while, for or do..while ...

  5. Python while loop exercises for CBSE Computer Science

    Python while loop exercises for CBSE Computer Science 1- Python program to print First 10 Even numbers using while loop num = 2 while(num<=20): print(num) num = num + 2

  6. CBSE Class 11 Computer Science (083) Sample Paper 2020-21 - CBSE Python

    CBSE Class 11 Computer Science (083) Sample Paper. General Instructions: 1- This question paper contains two parts A and B. Each part is compulsory. 2- Part-A has 2 sections: a) Section – I is short answer questions, to be answered in one word or one line. b) Section – II has two case studies questions. Each case study has 4 case-based ...

  7. Important Python Loop Programs for Class 11 Practical File

    Oct 28, 2020 · In the first section of Python Loop Programs for Class 11, I will provide you some while loop programs. Write Python programs to do the following. Generate a series of 1 to n Numbers. Develop a series of odd numbers from 1 to n. Print a series of numbers divisible by 3 from 1 to n. Create a series of square numbers from 1 to n.

  8. Python Programming Class 11 Questions and Answers - Learn CBSE

    Apr 9, 2025 · CBSE Sample Papers for Class 11; CBSE Sample Papers for Class 10; ... Python Programming Class 11 Long Answer Type Questions. Question 1. ... In Python, there are mainly two types of looping statements: for loop and while loop. Series-A Series is a one-dimensional array containing a sequence of values of any data type (int, float, list, string ...

  9. CBSE Class 11 - Python Programming :- Using While Loop, While Loop ...

    In this session, Anjali Luthra will discuss While loop in Python Programming. Topics covered will include How while loop work, sample programs and output questions. Type of Questions asked in the exam will be discussed.

  10. 18 Python while Loop Examples and Exercises - Pythonista Planet

    Check out these examples to get a clear idea of how while loops work in Python. Let’s dive right in. 1. Example of using while loops in Python n = 1 while n < 5: print("Hello Pythonista") n = n+1 2. Example of using the break statement in while loops. In Python, we can use the break statement to end a while loop prematurely.

  11. Some results have been removed
Refresh