Results for “write”

Showing 1–10 of 13

  1. Article Python Fundamentals

    Python Functions for Beginners

    Learn to write your own Python functions, from your first def to return values, default parameters and scope, with runnable examples, common mistakes and six practice projects.

  2. Article Python Fundamentals

    How to Start Programming in Python Fast

    …show you how to install Python, pick a simple editor, and write your first code in just a few easy steps. Perfect for beginners!

  3. Article Python Fundamentals

    Nested Loops in Python

    …images. Learn how they work, avoid common pitfalls, and write cleaner Python code with real examples.

  4. Article Mini projects

    Base 6 Number System in Python

    …learn. What Is a Base-6 (Senary) Number System? Before we write any Python, let's make sure we understand what "base" actually means in the context of number systems. In our everyday decimal system…

  5. Article Mini projects

    Calculating Escape Velocity in Python

    …needed to break free from a planet's gravity. Today we'll write a program that calculates this speed for any celestial body using NumPy - Python's powerful library for scientific computing. Why NumPy…

  6. Article Python Fundamentals

    Python If/Else for Beginners

    …condition types Here's what you'll use most often when writing conditions: Comparisons: == , != , < , > , <= , >= Logical operators: and , or , not Membership: in , not in Truthiness: values like 0…

  7. Article Mini projects

    Converting Temperatures in Python

    …How to make these conversions in Python? Before we start writing code, we need to determine what information we'll need from the program user: Which temperature they want to convert: Celsius or…

  8. Article Python Fundamentals

    Python print() Function

    …styles in programming Python gives you three ways to write text, and each has its special uses in space programming: Apostrophes (') Perfect for simple messages: print('Ready for launch') Double…

  9. Article Mini projects

    Python Random Module

    …Rolling the Cosmic Dice Now comes the exciting part! Let's write a function that randomly selects our destination: def select_random_destination(): # Choose a random planet destination =…