Results for “escape”

9 results

  1. Article Mini projects

    Calculating Escape Velocity in Python

    Learn how to calculate the minimum speed needed to escape a planet's gravity using Python. We'll build a complete calculator that works for any celestial body, from simple formulas to an interactive…

  2. Challenge

    JSON-looking payload

    …quotes, but then the apostrophe in Don't ends the text. Escape the quote that clashes by putting a backslash before it: \' or \" . Braces in an f-string The message should be built from values, so the…

    Fix the code Medium 2 stages quotes escape sequences f-strings json
  3. Challenge

    Path in a config

    …ew elemetry.txt In Python text, a backslash starts an escape sequence: \n is a new line and \t a tab. That's exactly what happened to \new and \telemetry . Get the paths to print the way Windows…

    Fix the code Easy 2 stages raw strings escape sequences paths print
  4. Article Python Fundamentals

    Python print() Function

    …types print('Captain\'s log: Day 1') # Using backslash to escape single quote # Including special characters print("Temperature reading:\n20°C") # \n creates a new line print("Path to data…