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

Without That

Code from an AI often has things you haven't learned: a function you've never seen, a shorter way of writing something you know. Having them explained is one way. Another is to ask for the same program without them, using only what you know. You then have code you can read, change and fix yourself, and you see what the new thing does by what it saves you.

The program in the editor is the one with enumerate() from before. You don't have to retype the program an answer gives you: a block of code in an answer has a button that copies it, and you paste it into the editor in place of your program.

“The same program” means that it prints the same, and you find that out by running it, not by reading the answer. Code from an AI goes into your program once you've run it.

Instructions

  1. 1

    Attach script.py and ask for the same program without enumerate(), using only what you know: variables, lists, if, for loops and functions. Then send it.

  2. 2

    Copy the program from the answer and paste it into the editor in place of yours. Run it: it prints the same three lines as before.

  3. 3

    Mia walked Rex for 50 minutes today. Add 50 at the end of the list and run the program. It prints four lines, the last one Walk 4: 50 minutes.

Back

5/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

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with: