Odd values left, even values right
Write a Python program to rearrange a list so all odd values come first and all even values after them, keeping their...
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 rearrange a list so all odd values come first and all even values after them, keeping their...
Write a Python program to print the squares of all even numbers in a list. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print every pair of elements from a list whose sum is 10. Step-by-step explanation, colour-coded code and real output.
Write a Python program to remove every duplicate value from a list, keeping the first occurrence of each value in its original...
Write a Python program to separate the even and odd numbers of a list. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the smallest and largest elements of a list. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the product of all elements in a list. Step-by-step explanation, colour-coded code and real output.
Write a Python program to calculate the sum of all elements in a list. Step-by-step explanation, colour-coded code and real output.
Write a Python program to combine two lists. Step-by-step explanation, colour-coded code and real output.
Write a Python program to calculate the square of each number in a list. Step-by-step explanation, colour-coded code and real output.
100 NumPy programs with solutions: arrays, matrices, comparisons, reshape, sort, unique, NaN handling, statistics and rounding, each explained.
95 pandas programs with solutions: Series, DataFrames, filtering, sorting, groupby, merge, string methods and missing values, each explained.
Take free timed mock tests with answers and explanations.