Handle division by zero
Write a Python program that divides two numbers and prints a friendly message when the divisor is...
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 divides two numbers and prints a friendly message when the divisor is...
Write a Python program that reads a key from a dictionary and handles a missing key. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print platform details. Step-by-step explanation, colour-coded code and real output.
Write a Python program to show the details of a file with `os.stat()`. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a path is a symbolic link. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a path exists. Step-by-step explanation, colour-coded code and real output.
Write a Python program to get the last modified time of a file. Step-by-step explanation, colour-coded code and real output.
Write a Python program to get the ctime of a file with `os.path.getctime()`. Step-by-step explanation, colour-coded code and real output.
Write a Python program to split a path into folder and file name. Step-by-step explanation, colour-coded code and real output.
Write a Python program to get the number of CPUs with `os.cpu_count()`. Step-by-step explanation, colour-coded code and real output.
Write a Python program that uses `os.chroot()` where available. Step-by-step explanation, colour-coded code and real output.
Write a Python program to move a file into new nested folders with `os.renames()`. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.