Results for “quotes”

Showing 41–50 of 55

  1. Article Python Fundamentals

    A Practical Guide to Getting Started with Programming

    …# Decimal number # Text planet = "Mars" # Text goes in quotes # True/False has_moons = True # Capitalize True and False Think of each variable as a labeled container. The label is the name (like speed…

  2. Challenge

    Command parser

    …and print OK and the result, or REJECTED , the command in quotes and the reason: OK ('burn', 12.5) OK ('burn', 3.0) OK ('burn', 0.5) REJECTED "burn": burn needs one value: the length in seconds…

    Write the code Medium 2 stages project parsing strings split
  3. Challenge

    Config loader

    …operators edit by hand. Last week someone typed "256" in quotes, misspelt a key and set twelve retries, and the module started with the wrong settings without a word. Write the loader that fills in…

    Write the code Hard 3 stages project json configuration validation
  4. Challenge

    JSON out

    …Printing it with print(summary) looks close, but single quotes, True and None aren't JSON, and the archive rejects it. Produce real JSON text, laid out so a person can read it too. json.dumps() Turn…

    Write the code Easy 2 stages json json.dumps modules import
  5. Challenge

    API response

    …brackets: launch["name"] . Inside an f-string, use single quotes for the key: {launch['name']} . Everything in the response Before relying on an API, developers look at a whole response. After the…

    Write the code Easy 2 stages dictionaries keys items JSON
  6. Challenge

    Aligned status board

    …into the braces: {'SYSTEM':<12} . Use the other kind of quotes inside, so they don't end the f-string. Readings on the right The board gets a third column: each system's temperature in °C. Numbers…

    Write the code Medium 3 stages f-strings alignment tables formatting