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: An Older Version

A name can also be missing because it's gone. An assistant learned Python, and the libraries people use with it, from texts written up to some time before it came out, and people then use it for a year or more. Python gets a new version every year, and libraries change too: they add functions, and sometimes rename or remove old ones. So an assistant can use a library the way an older version worked, and be sure of it, since that's the version it learned.

At home, you've just installed a library for drawing charts, in its newest version, and asked an assistant for a chart of Mia's walks. Its code ends with an AttributeError: the library has no function with the name the answer used. You tell the assistant, and it says the function is there. What's most likely, and what do you do?

Back

3/6

  1. 1. A Method That Doesn't Exist
  2. 2. Things That Aren't Here
  3. 3. Quiz: An Older Version
  4. 4. Try It in Three Lines
  5. 5. Quiz: Check the Claim
  6. 6. Summary
Next

Try it yourself

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