how to use for loop in python?

Report
Question

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

Report
Cancel
Share it...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

what is syntax of for loop in python?

Can u show me any example of for loop in python?

in progress 0
.net admin 4 months 4 Answer 265 views 0

About admin

Answers ( 4 )

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

    Report
    Cancel

    Syntax:
    for iterating_var in sequence:
    statements(s)
    Example:
    names = [‘james’, ‘kerry’, ‘kelly’]
    for name in names:
    print ‘Current name :’, name
    print “Loop ends!”
    output:
    current name:james
    current name:kerry
    current name:kelly
    Loop ends!

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

    Report
    Cancel

    Way cool! Some extremely valid points! I appreciate you penning this post
    and the rest of the website is very good.

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

    Report
    Cancel

    Superb website you have here but I was wondering if you knew of any community forums that cover the same topics talked about here?
    I’d really love to be a part of group where I can get opinions from other knowledgeable individuals
    that share the same interest. If you have any suggestions, please let me
    know. Thank you!

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

    Report
    Cancel

    Appreciating the time and energy you put into your blog and
    in depth information you provide. It’s nice to
    come across a blog every once in a while that isn’t the
    same old rehashed material. Excellent read! I’ve saved your site
    and I’m adding your RSS feeds to my Google account.

Leave an answer

Browse