Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Stackorigin – The Community of Question and Answers

Stackorigin – The Community of Question and Answers Logo Stackorigin – The Community of Question and Answers Logo
Search
Ask A Question

Mobile menu

Close
Ask a Question

Python Flow Control

There three flow control’s are there those are

  1. Conditional Statement/Selection Statement
  2. Iterative Statement
  3. Transfer statement

Conditional Statement/Selection Statement: Conditional statement also know as selection statement. Conditional statement contain three flow control those are

  • If Condition:
    • An “if statement” is written by using the if keyword.
a = 10
if a == 10:
    print("a is equal to 10 number")

Iterative Statement:

Some times we required to execute group of statement repeatedly then we need to go for iterative statement.

Loop: Group of statement’s executed repeatedly until condition satisfied.

There are two loop’s are there those are

  • For Loop:
    • syntax: for each-element in sequence:
      • do something
  • While Loop:
    • syntax: while condition:
      • do something
    • whileloop

Note: do while loop not there in python.

Transfer statement:

  • Break: break statement terminates the loop.
  • Continue Statement: continue statement is used to skip the rest of the code inside a loop for the current iteration only. Loop does not terminate but continues on with the next iteration.
  • Pass Statement:  pass statement is a null operation; nothing happens when it executes. pass is keyword in python.
  • Del Statement: del is keyword in python. del keyword is used to delete objects. In Python everything is an object, so the del keyword can also be used to delete variables, lists, or parts of a list etc.
Share
  • Facebook

Sidebar

Ask A Question

Adv 120x600

Looking for advertising?

Consider These Things If You Appreciate What stackorigin Does: Stackorigin is a community where you can ask questions and find answers, for free to everyone. We would appreciate it if you bought us a coffee if you liked what we were doing.

Buy me a Coffe

Adv 120x600

  • Random
  • Answers
    • On: February 7, 2021
    • Answer: 1

    What is mean by photosynthesis?

    • On: July 9, 2021
    • Answer: 1

    Is there a way to develop a website without HTML/CSS?

    • On: August 8, 2022
    • Answers: 0

    Buy Dorzox Cheap, Buy dorzox with discover card

    • On: August 3, 2022
    • Answers: 0

    buy Fastofen Kentucky, Buy fastofen near me

    • On: August 8, 2022
    • Answers: 0

    order Suhagra Brand Without prescription United Kingdom, Suhagra brand ordering

  • sam
    sam added an answer Please go launch below link   https://digitalcloud.training/aws-sysops-administrator-associate-free-practice-exam-questions/ August 3, 2023 at 9:55 am
  • newoc
    newoc added an answer Absolutely! You can confidently utilize authentic and up-to-date Dumps that… July 22, 2023 at 7:31 am
  • strapcart_online
    strapcart_online added an answer Impotence is commonly seen in men between the ages of… July 21, 2023 at 8:26 am
  • lasop
    lasop added an answer If you're looking for the ultimate resource to excel in… July 19, 2023 at 5:00 am
  • bruceparker
    bruceparker added an answer Buy Dapoxetine Online is a medication primarily used for the… July 17, 2023 at 7:34 am

Adv 120x600

Trending Categories

Health
2050Questions
, 4Followers
Programming
1296Questions
, 0Followers
Technology
218Questions
, 3Followers
General Knowledge
131Questions
, 0Followers
Business & Finance
86Questions
, 4Followers

Adv 120×600

Stats

  • Questions 4k
  • Answers 1k
  • Best Answers 105
  • Users 163

Users

Aluminium Die Casting Products Manufacturers

Aluminium Die Casting Products Manufacturers

  • 0 Questions
  • 0 Answers
irene1707

irene1707

  • 0 Questions
  • 0 Answers
Ductile Iron Casting Manufacturers

Ductile Iron Casting Manufacturers

  • 0 Questions
  • 0 Answers
Navratan

Navratan

  • 0 Questions
  • 0 Answers
AAC Blocks Manufacturers in Tamil Nadu

AAC Blocks Manufacturers in Tamil Nadu

  • 0 Questions
  • 0 Answers

Adv 120×600

Explore

  • Recent Questions
  • Most Answered
  • Answers
  • No Answers
  • Most Visited
  • Most Voted
  • Random
  • Polls

Footer

Stackorigin - The Community of Question and Answers

Stackorigin

Stackorigin is the world’s largest Q&A networking site, Stackorigin community brings you the collaboration of all the various Questions and the related Answers given by the community.

About

  • About Us
  • Contact Us
  • FAQ
  • Submit Guest Post Article on Technology, Education, Health, Apps, Gadgets, IoT, AI, Business, Digital Marketing and More

Info

  • Privacy Policy
  • Terms and Conditions
  • Community Guidelines
  • Tags

Products

  • Tutorials
  • Advertising
  • Categories
  • Corona
  • StackHow

Follow

© 2022 Stackorigin. All Rights Reserved.