Results for “sep”

Showing 11–20 of 30

  1. Challenge

    Prove the fix

    Write assert checks for the fixed add_sample() that would have caught the shared default list, then add checks that a log passed in is still the one that gets the sample, so a "fix" that breaks that…

    Write the code Medium 2 stages testing assert regression tests default values
  2. Article Python Fundamentals

    Python Functions for Beginners

    …value you send in when you call. More than one parameter Separate parameters with commas: def describe_planet(name, position): print(f"{name} is planet number {position} from the Sun.")…

  3. Article Mini projects

    Base 6 Number System in Python

    …the way to go. But understanding the manual method is what separates someone who copies code from someone who actually gets what's going on under the hood. Converting Base 6 to Decimal - Your Own…

  4. Article Mini projects

    Calculate your weight on different planets in Python

    …written with curly braces {} and each key-value pair is separated by a comma. The key and value in each pair are separated by a colon. Next, let's create a function to calculate weight: def…

  5. Challenge

    Any number of values

    …call, average(*readings) passes the five readings as five separate arguments. An option after the values Add a rounding option, decimals=1 , after *values , and return None when there are no values at…

    Write the code Easy 2 stages functions *args unpacking keyword-only arguments