Results for “write”

Showing 41–50 of 79

  1. Challenge

    sort() returns None

    …run the code yet. Read it and decide what it will print. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Fix the code Easy 3 stages lists sort None in place
  2. Challenge

    Flag from config text

    …run the code yet. Read it and decide what it will print. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Fix the code Easy 3 stages bool if else config
  3. Challenge

    Off-by-one slice

    …run the code yet. Read it and decide what it will print. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Fix the code Easy 3 stages strings slicing indexing off-by-one
  4. Challenge

    Wrong average

    …run the code yet. Read it and decide what it will print. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Fix the code Easy 3 stages order of operations brackets average debugging
  5. Challenge

    Float surprise

    …run the code yet. Read it and decide what it will print. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Write the code Easy 3 stages float floating point rounding formatting
  6. Challenge

    Sign-up cleanup

    …and say exactly what was dropped and why. Clean the text Write clean_name(name) , which trims the name, joins its words with single spaces and capitalises each word, and clean_email(email) , which…

    Write the code Medium 2 stages project strings strip split
  7. Challenge

    Missing index

    …run the code yet. Read it and decide what it will print. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Fix the code Easy 3 stages lists indexing IndexError len
  8. Challenge

    Running totals

    …Read it and decide what it will print on its last line. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Write the code Easy 3 stages variables -= += updating values
  9. Challenge

    Round or cut?

    …run the code yet. Read it and decide what it will print. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Write the code Medium 3 stages int round rounding type conversion
  10. Challenge

    Statistics module

    Refactor the temperature summary: delete the hand-written mean() and median() and use statistics.mean() and statistics.median() instead, then add the standard deviation and handle passes with too few…

    Fix the code Easy 2 stages statistics mean median stdev