Results for “output”

Showing 11–20 of 32

  1. Article Python Fundamentals

    Python print() Function

    …is clear") Advanced print() features Customizing output separation with sep When you print multiple items, Python normally puts a space between them. The sep parameter lets you change this separator…

  2. Challenge

    Manifest line

    Unpack an (id, item, mass_kg) tuple into three named variables and print a cargo manifest line, then fix the ValueError when the manifest adds a fourth field.

    Write the code Easy 2 stages tuples unpacking ValueError formatting
  3. Challenge

    Progress on one line

    Make two prints share one line, like Uploading flight plan... done, by changing how print() ends. A Python challenge on print(end=...) for progress messages.

    Write the code Easy 3 stages print end progress console
  4. Article Python Fundamentals

    Numbers and Basic Math Operations in Python

    …= 2 ** 10 # 2 to the power of 10 print(f"Solar panel power output: {solar_panel_power} watts") Tips for Working with Numbers 1. Use underscores in large numbers for readability: orbital_distance =…

  5. Challenge

    Environment check

    Every useful bug report starts with the Python version. Ask Python for it with the platform and sys modules and print it the way python --version does.

    Write the code Easy 3 stages platform sys python version bug report
  6. Article Python Fundamentals

    Python Functions for Beginners

    …print("All systems are go.") greet_crew() greet_crew() Output: Good morning, crew. All systems are go. Good morning, crew. All systems are go. Two calls, two greetings. You could call it a hundred…

  7. Article Mini projects

    Base 6 Number System in Python

    …# Let's test it print(decimal_to_base6(12)) # Output: 20 print(decimal_to_base6(36)) # Output: 100 print(decimal_to_base6(101)) # Output: 245 print(decimal_to_base6(255)) # Output: 1103 Walk through…

  8. Article Python Fundamentals

    Variables and data types in Python

    …# Note: ISS appears only once print(signal_sources) # Output: {'Voyager1', 'ISS', 'Hubble'} # Finding common observation targets between telescopes telescope1_targets = {"NGC1234", "M31", "M87", "Crab…