Information about cookies on this page

Our website uses cookies to ensure the functionality of the website, to collect and analyze information about the performance and usage of the website. Privacy Policy

  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in
  
  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in

Quiz: Numbered Walks

Now that you know what enumerate() does, read this program. What does it print?

1walks = [20, 45, 35]
2
3for number, minutes in enumerate(walks, start=1):
4    if minutes > 30:
5        print(number, minutes)
6
Back

3/7

  1. 1. It Sees Only What You Send
  2. 2. Explained at Your Level
  3. 3. Quiz: Numbered Walks
  4. 4. Ask About One Thing
  5. 5. Without That
  6. 6. Quiz: What It Knows About Your Program
  7. 7. Summary
Next

Try it yourself

Do this exercise right here in your browser. No account needed.