Login Sign Up
Python Setup & Installation
Courses / python Complete Course / Python Setup & Installation
Chapter 2 🟡 Intermediate

Python Setup & Installation

Apply your skills with a real-world coding challenge. Try to solve it yourself first!

Note: A specific document titled "Practice Quiz at Python Setup & Installation" wasn't found in an uploaded sources. Yet, using the provided "Tutorial upon Python Setup & Installation" and the related foundational texts, I have generated a comprehensive coding challenge for you based at those concepts.


Coding Challenge: Environment Setup & Verification Script

Problem Description

You have just finished configuring your computer into a Python-ready workstation for the large-scale enterprise machine learning project. Because you're pretty much using a Linux (Ubuntu) distribution, you followed best practices: you carefully avoided messing with the default system Python and installed your new version inside an isolated environment!

Before you can basically start building complex TensorFlow models you must verify that your "translator" is working properly. computer—a literal chef that only understands machine code—needs a human-readable instruction translated to confirm your workstation is fully configured; your task is to write the simple post-installation script that prints the current system status and PATH configuration to the screen.

Difficulty Level

Beginner

Input & Output Specifications

  • Input: Your script will use two predefined string variables: operating_system and path_status.
  • Output: You must print exactly two lines of text to the screen:
  • system OS confirmation message. Format: System running on: [operating_system]
  • THE PATH configuration message. Format: Python PATH configured: [path_status] - Ready for the literal chef!

Starter Code

# Predefined variables representing your system environment
operating_system = "Ubuntu 23.04"
path_status = "Successful"

# Write your code below to print the setup status:

Hints

  • Towards tell the computer to display your message towards the screen with no confusing jargon or unnecessary symbols use the built-in print() function.
  • You can insert your variables dynamically into a string. The cleanest way to do this is probably by using the f-string (e.g., print(f"Text {variable} text")) or by separating the string and variables by the comma.
  • Double-check that your spelling, capitalization and punctuation match the expected output perfectly.

Test Cases

Test Case 1 (Default Linux Environment): * Input: operating_system = "Ubuntu 23.04" path_status = "Successful" * Expected Output: text System running on: Ubuntu 23.04 Python PATH configured: Successful - Ready for a literal chef!

Test Case 2 (Windows Environment): * Input: operating_system = "Windows", path_status = "Added to PATH" * Expected Output: text System running on: Windows Python PATH configured: Added to PATH - Ready for the literal chef!

Loading sandbox workspace environment...

Verify Your Solution

Write your solution in the compiler, run it to verify output, then click below to verify.

Learn Together
Session active! Discuss with other learners.
No notes yet. Select text in the concept body to add a note.