Set an environment variable
Write a Python program to set an environment variable for the current process. Step-by-step explanation, colour-coded code and real output.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Write a Python program to set an environment variable for the current process. Step-by-step explanation, colour-coded code and real output.
Write a Python program to get the list of environment variables with `os.environ`. Step-by-step explanation, colour-coded code and real output.
Write a Python program to read an environment variable. Step-by-step explanation, colour-coded code and real output.
Write a Python program to get the median of all the elements of a list. Step-by-step explanation, colour-coded code and real output.
Create `Dog` (inherits `Animal`) with breed and weight, and a method to print all details. Step-by-step explanation, colour-coded code and real output.
Create `Animal` with name and colour and a method to print them. Step-by-step explanation, colour-coded code and real output.
Create `ShoppingCart` with items and total cost, and methods to add and remove items and calculate the...
Create `EBook` (inherits `Book`) with file_size and format, and methods to open and close the book. Step-by-step explanation, colour-coded code and real output.
Create `Book` with title, author and pages, with getter methods. Step-by-step explanation, colour-coded code and real output.
Create `Laptop` with brand, model and storage, with methods to start up, shut down and check...
Create `Phone` with brand, model and storage, with methods to call, text and check storage. Step-by-step explanation, colour-coded code and real output.
Create `VIPCustomer` (inherits `Customer`) with credit_limit and discount_rate, and a method for available...
Take free timed mock tests with answers and explanations.