Results for “get”

Showing 1–10 of 15

  1. Article Python Fundamentals

    A Practical Guide to Getting Started with Programming

    …(it's a really simplified explanation, but I'm sure you get what I mean). With Python, you write these instructions using English words and some symbols that are later interpreted so your PC can…

  2. Article Mini projects

    Medical dispenser - Don’t trust the user

    …clock by three hours and ask again. It works, and Grace gets his medication, smugly noting " What a stupid system. " Reading this brought back memories from the late '90s when I'd set my PC's date…

  3. Article Mini projects

    Managing Astronaut Medical Data with Python

    …pady=10) def add_astronaut(self): name = self.name_entry.get() age = self.age_entry.get() nationality = self.nationality_entry.get() conn = sqlite3.connect('space_station.db') cursor = conn.cursor()…

  4. Article Mini projects

    Calculating Escape Velocity in Python

    …custom parameters") print(" 0. Exit") print("-"*50) def get_custom_parameters(): """Gets parameters from user.""" print("\nENTER CELESTIAL BODY DATA") name = input("Name: ") while True: try: mass_str…

  5. Article Mini projects

    Python Random Module

    …planet destination = random.choice(list(planets.keys())) # Get planet details planet_info = planets[destination] return destination, planet_info # Let's try our space lottery! planet, details =…

  6. Article Python Fundamentals

    Python Functions for Beginners

    …you fix it once. Find a bug in copy-pasted code and you get to hunt down every copy. You will miss one. Everybody does. Your code starts to read like a plan. A line like fuel =…

  7. Article Mini projects

    Converting Temperatures in Python

    …Just add 273.15 to the temperature in degrees Celsius to get the temperature in Kelvin. These scales differ only in the placement of the zero point. The formula for converting temperature in degrees…

  8. Article Python Fundamentals

    Online Python Editor

    …your browser tab. Terminal Experience, Browser Convenience Get real terminal-style output without SSH or complex setups. Your code runs exactly as you'd expect, with proper formatting and error…

  9. Article Mini projects

    Base 6 Number System in Python

    …decimal_number while number > 0: remainder = number % 6 # Get the last base-6 digit digits.append(str(remainder)) number = number // 6 # Remove that digit # Remainders come out in reverse order, so we…

  10. Article Python Fundamentals

    Nested Loops in Python

    …another loop. Sounds straightforward, but a lot of people get confused here. We use them when we need to go through multidimensional data - Excel tables, scanning a planet's surface point by point…