Byte order and encoding
Write a Python program that prints the machine's byte order and the default text encoding. 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 that prints the machine's byte order and the default text encoding. Step-by-step explanation, colour-coded code and real output.
Write a Python program that checks which interpreter file is running. Step-by-step explanation, colour-coded code and real output.
Write a Python program that prints the largest float and float precision. Step-by-step explanation, colour-coded code and real output.
Write a Python program that prints `sys.maxsize` and shows ints can be bigger. Step-by-step explanation, colour-coded code and real output.
Write a Python program that reads the recursion limit and handles RecursionError. Step-by-step explanation, colour-coded code and real output.
Write a Python program that compares the memory size of a few objects. Step-by-step explanation, colour-coded code and real output.
Write a Python program that checks whether a module has been imported yet. Step-by-step explanation, colour-coded code and real output.
Write a Python program that adds a folder to `sys.path` and imports a module from it. Step-by-step explanation, colour-coded code and real output.
Write a Python program that shows how many folders Python searches for modules. Step-by-step explanation, colour-coded code and real output.
Write a Python program that prints a progress bar with `sys.stdout.write`. Step-by-step explanation, colour-coded code and real output.
Write a Python program that reads numbers from standard input and prints their total. Step-by-step explanation, colour-coded code and real output.
Write a Python program that writes normal output to stdout and errors to stderr. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.